From f50d809c2548a3d2e067be81a94b96f4b6923f58 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= <sebastian@centricular.com>
Date: Fri, 13 Mar 2015 13:42:46 +0000
Subject: [PATCH] bus: Fix another case where we hold the object lock while
 unreffing a message

---
 gst/gstbus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gst/gstbus.c b/gst/gstbus.c
index 9953210bca..a1a008e0b3 100644
--- a/gst/gstbus.c
+++ b/gst/gstbus.c
@@ -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;
   }