Commit 5c549634 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

Revert "winegstreamer: Remove redundant null check before g_error_free.".

This reverts commit 976ccb92. This is what I get for not reading the documentation...if you call g_error_free(NULL), it prints a nasty error message, which I am now getting frequently. Signed-off-by: 's avatarAlex Henrie <alexhenrie24@gmail.com> Signed-off-by: 's avatarAndrew Eikum <aeikum@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 424c86ad
...@@ -1083,7 +1083,8 @@ static GstBusSyncReply watch_bus(GstBus *bus, GstMessage *msg, gpointer data) ...@@ -1083,7 +1083,8 @@ static GstBusSyncReply watch_bus(GstBus *bus, GstMessage *msg, gpointer data)
WARN("%s: %s\n", GST_OBJECT_NAME(msg->src), err->message); WARN("%s: %s\n", GST_OBJECT_NAME(msg->src), err->message);
WARN("%s\n", dbg_info); WARN("%s\n", dbg_info);
} }
g_error_free(err); if (err)
g_error_free(err);
g_free(dbg_info); g_free(dbg_info);
return GST_BUS_DROP; return GST_BUS_DROP;
} }
......
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