bus: Fix another case where we hold the object lock while unreffing a message
authorSebastian Dröge <sebastian@centricular.com>
Fri, 13 Mar 2015 13:42:46 +0000 (13:42 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 13 Mar 2015 13:42:46 +0000 (13:42 +0000)
gst/gstbus.c

index 9953210..a1a008e 100644 (file)
@@ -399,8 +399,8 @@ gst_bus_post (GstBus * bus, GstMessage * message)
 is_flushing:
   {
     GST_DEBUG_OBJECT (bus, "bus is flushing");
-    gst_message_unref (message);
     GST_OBJECT_UNLOCK (bus);
+    gst_message_unref (message);
 
     return FALSE;
   }