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:
parent
424c86ad29
commit
5c54963482
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue