Commit 45309113 authored by Wim Taymans's avatar Wim Taymans

x11: free bufferpool whe activation fails

parent 6688eea1
......@@ -1185,6 +1185,7 @@ activate_failed:
{
GST_ERROR_OBJECT (ximagesink, "failed to activate bufferpool.");
g_mutex_unlock (ximagesink->flow_lock);
gst_object_unref (newpool);
return FALSE;
}
}
......
......@@ -1745,6 +1745,7 @@ activate_failed:
{
GST_ERROR_OBJECT (xvimagesink, "failed to activate bufferpool.");
g_mutex_unlock (xvimagesink->flow_lock);
gst_object_unref (newpool);
return FALSE;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment