x11: free bufferpool whe activation fails
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 24 May 2011 07:45:18 +0000 (09:45 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 24 May 2011 07:45:39 +0000 (09:45 +0200)
sys/ximage/ximagesink.c
sys/xvimage/xvimagesink.c

index 51205dc..1ef50ee 100644 (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;
   }
 }
index 333cd52..33f54ea 100644 (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;
   }
 }