From 060f0c21f2369b6f1e917b9641f86675144fcced Mon Sep 17 00:00:00 2001 From: Vineeth T M Date: Thu, 17 Sep 2015 14:27:33 +0900 Subject: [PATCH] audiosink, multisocketsink: Fix error leak during failures https://bugzilla.gnome.org/show_bug.cgi?id=755143 --- gst-libs/gst/audio/gstaudiosink.c | 1 + gst/tcp/gstmultisocketsink.c | 1 + 2 files changed, 2 insertions(+) diff --git a/gst-libs/gst/audio/gstaudiosink.c b/gst-libs/gst/audio/gstaudiosink.c index 0604f59161..ca2cedafaf 100644 --- a/gst-libs/gst/audio/gstaudiosink.c +++ b/gst-libs/gst/audio/gstaudiosink.c @@ -480,6 +480,7 @@ thread_failed: GST_ERROR_OBJECT (sink, "could not create thread %s", error->message); else GST_ERROR_OBJECT (sink, "could not create thread for unknown reason"); + g_clear_error (&error); return FALSE; } } diff --git a/gst/tcp/gstmultisocketsink.c b/gst/tcp/gstmultisocketsink.c index bc4e231422..d8e587b9ed 100644 --- a/gst/tcp/gstmultisocketsink.c +++ b/gst/tcp/gstmultisocketsink.c @@ -854,6 +854,7 @@ gst_multi_socket_sink_handle_client_write (GstMultiSocketSink * sink, GST_LOG_OBJECT (sink, "write would block %p", mhclient->handle.socket); more = FALSE; + g_clear_error (&err); } else { goto write_error; }