diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-11-13 12:47:55 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-11-14 14:08:40 +0100 |
commit | 16dec615cb42a8ecb7495639b8dbf0b37cd9b91b (patch) | |
tree | 595e2ca6ecaa905b78645c91a65c8bed37242bd0 | |
parent | f3b3dd33f3cfe9d53412a326884c3f2ce9363f68 (diff) |
playbin2: Don't leak the GError and debug string when parsing error messages
-rw-r--r-- | gst/playback/gstplaybin2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index f6f960004..209008f20 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -2017,6 +2017,8 @@ gst_play_bin_handle_message (GstBin * bin, GstMessage * msg) new_msg = gst_message_new_warning (msg->src, err, debug); gst_message_unref (msg); + g_error_free (err); + g_free (debug); msg = new_msg; REMOVE_SIGNAL (group->suburidecodebin, group->sub_pad_added_id); |