Alex Henrie : winegstreamer: Remove redundant null check before g_error_free.

Alexandre Julliard julliard at winehq.org
Fri Nov 18 15:35:46 CST 2016


Module: wine
Branch: master
Commit: 976ccb92ea745d8a79a2d0a25d37268bb4dc62a6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=976ccb92ea745d8a79a2d0a25d37268bb4dc62a6

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Thu Nov 17 08:46:37 2016 -0700

winegstreamer: Remove redundant null check before g_error_free.

Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/winegstreamer/gstdemux.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/winegstreamer/gstdemux.c b/dlls/winegstreamer/gstdemux.c
index 65366ce..6b005ed 100644
--- a/dlls/winegstreamer/gstdemux.c
+++ b/dlls/winegstreamer/gstdemux.c
@@ -1083,8 +1083,7 @@ 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);
     }
-    if (err)
-        g_error_free(err);
+    g_error_free(err);
     g_free(dbg_info);
     return GST_BUS_DROP;
 }




More information about the wine-cvs mailing list