audiosink, multisocketsink: Fix error leak during failures

https://bugzilla.gnome.org/show_bug.cgi?id=755143
This commit is contained in:
Vineeth T M 2015-09-17 14:27:33 +09:00 committed by Sebastian Dröge
parent 2a1e046dd9
commit 060f0c21f2
2 changed files with 2 additions and 0 deletions

View file

@ -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;
}
}

View file

@ -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;
}