gst/schedulers/gstoptimalscheduler.c: Only unref entry if there is an entry.
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Tue, 18 Jan 2005 11:29:12 +0000 (11:29 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Tue, 18 Jan 2005 11:29:12 +0000 (11:29 +0000)
Original commit message from CVS:
* gst/schedulers/gstoptimalscheduler.c: (schedule_group):
Only unref entry if there is an entry.

ChangeLog
gst/schedulers/gstoptimalscheduler.c

index 6219087..7dff571 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-18  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
+
+       * gst/schedulers/gstoptimalscheduler.c: (schedule_group):
+         Only unref entry if there is an entry.
+
 2005-01-17  Wim Taymans  <wim@fluendo.com>
 
        * gst/schedulers/gstoptimalscheduler.c: (add_to_group),
index c90b1d4..fba08ca 100644 (file)
@@ -1170,7 +1170,8 @@ schedule_group (GstOptSchedulerGroup * group)
 
       gst_object_unref (GST_OBJECT (e));
     }
-    gst_object_unref (GST_OBJECT (entry));
+    if (entry)
+      gst_object_unref (GST_OBJECT (entry));
     g_slist_free (lcopy);
   }
   return TRUE;