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

This reverts commit 976ccb92ea.

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: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alex Henrie 2016-11-28 22:35:53 -07:00 committed by Alexandre Julliard
parent 424c86ad29
commit 5c54963482
1 changed files with 2 additions and 1 deletions

View File

@ -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\n", dbg_info);
}
g_error_free(err);
if (err)
g_error_free(err);
g_free(dbg_info);
return GST_BUS_DROP;
}