tools/gst-launch.c: Unref message after using its contents instead of before.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 25 May 2005 11:26:14 +0000 (11:26 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 25 May 2005 11:26:14 +0000 (11:26 +0000)
Original commit message from CVS:
* tools/gst-launch.c: (event_loop):
Unref message after using its contents instead of
before.

ChangeLog
tools/gst-launch.c

index 1f77d8a..9196257 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-25  Wim Taymans  <wim@fluendo.com>
+
+       * tools/gst-launch.c: (event_loop):
+       Unref message after using its contents instead of
+       before.
+
 2005-05-24  Wim Taymans  <wim@fluendo.com>
 
        * docs/design/draft-ghostpads.txt:
index b363aea..a5325f5 100644 (file)
@@ -381,8 +381,8 @@ event_loop (GstElement * pipeline, gboolean blocking)
         gchar *debug;
 
         gst_message_parse_error (message, &gerror, &debug);
-        gst_message_unref (message);
         gst_object_default_error (GST_MESSAGE_SRC (message), gerror, debug);
+        gst_message_unref (message);
         g_error_free (gerror);
         g_free (debug);
         return TRUE;