From: John Stebbins Date: Thu, 27 Oct 2016 19:51:09 +0000 (-0700) Subject: LinGui: fix use of freed pointer X-Git-Tag: 1.0.0~164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=202fccd7191e429e2e5a405eb11c6ec90021d51a;p=handbrake LinGui: fix use of freed pointer --- diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 051a21dd2..9183e0cb8 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -4424,13 +4424,13 @@ ghb_is_cd(GDrive *gd) return FALSE; udd = g_udev_client_query_by_device_file(udev_ctx, device); - g_free(device); - if (udd == NULL) { g_message("udev: Failed to lookup device %s", device); + g_free(device); return FALSE; } + g_free(device); gint val; val = g_udev_device_get_property_as_int(udd, "ID_CDROM_DVD");