x11: free bufferpool whe activation fails

This commit is contained in:
Wim Taymans 2011-05-24 09:45:18 +02:00
parent 6688eea15c
commit 453091137e
2 changed files with 2 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -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;
}
}