Commit 3dbaeefc authored by W. Michael Petullo's avatar W. Michael Petullo

Fix two errors identified by Coverity (GNOME bug #749886)

Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent a946972e
...@@ -523,6 +523,10 @@ _error: ...@@ -523,6 +523,10 @@ _error:
soup_message_set_status (message, SOUP_STATUS_INTERNAL_SERVER_ERROR); soup_message_set_status (message, SOUP_STATUS_INTERNAL_SERVER_ERROR);
if (NULL != cd) { if (NULL != cd) {
if (NULL != cd->stream) {
g_input_stream_close (cd->stream, NULL, NULL);
}
g_free (cd); g_free (cd);
} }
...@@ -537,11 +541,7 @@ _error: ...@@ -537,11 +541,7 @@ _error:
if (NULL != error) { if (NULL != error) {
g_error_free (error); g_error_free (error);
} }
if (NULL != cd->stream) {
g_input_stream_close (cd->stream, NULL, NULL);
}
if (NULL != stream) { if (NULL != stream) {
g_input_stream_close (stream, NULL, NULL); g_input_stream_close (stream, NULL, NULL);
} }
......
...@@ -126,7 +126,7 @@ dmap_gst_qt_input_stream_new (GInputStream * src_stream) ...@@ -126,7 +126,7 @@ dmap_gst_qt_input_stream_new (GInputStream * src_stream)
gst_bin_add_many (GST_BIN (pipeline), src, decode, convert, audio_encode, mux, sink, NULL); gst_bin_add_many (GST_BIN (pipeline), src, decode, convert, audio_encode, mux, sink, NULL);
if (FALSE == gst_element_link (stream->priv->src, stream->priv->decode)) { if (FALSE == gst_element_link (src, decode)) {
g_warning ("Error linking source and decode elements"); g_warning ("Error linking source and decode elements");
goto done; goto done;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment