tools/gst-launch.c: Unref message after using its contents instead of before.

Original commit message from CVS:
* tools/gst-launch.c: (event_loop):
Unref message after using its contents instead of
before.
This commit is contained in:
Wim Taymans 2005-05-25 11:26:14 +00:00
parent a7f3844adf
commit 32f9787436
2 changed files with 7 additions and 1 deletions

View file

@ -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:

View 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;