diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/callbacks.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |