Unref source in playbin2's finalize method
authorMichael Smith <msmith@songbirdnest.com>
Fri, 30 Jan 2009 23:23:23 +0000 (15:23 -0800)
committerMichael Smith <msmith@songbirdnest.com>
Sat, 31 Jan 2009 02:30:10 +0000 (18:30 -0800)
gst/playback/gstplaybin2.c

index df9ded6c1914ba470b1fe21984e8494b69e241fb..1e1f31a713f9c216b57fc98f000bb17202830975 100644 (file)
@@ -1002,6 +1002,9 @@ gst_play_bin_finalize (GObject * object)
   free_group (playbin, &playbin->groups[0]);
   free_group (playbin, &playbin->groups[1]);
 
+  if (playbin->source)
+    gst_object_unref (playbin->source);
+
   g_value_array_free (playbin->elements);
   g_free (playbin->encoding);
   g_mutex_free (playbin->lock);