mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-30 02:46:37 +02:00
gcontenttype: Fix a potential g_object_unref(NULL) call
This can happen if the g_file_query_info() call fails, returning NULL. Found with scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=113075
This commit is contained in:
@@ -1325,7 +1325,7 @@ matchlet_match (TreeMatchlet *matchlet,
|
|||||||
result = FALSE;
|
result = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_object_unref (info);
|
g_clear_object (&info);
|
||||||
g_object_unref (file);
|
g_object_unref (file);
|
||||||
}
|
}
|
||||||
while (!result);
|
while (!result);
|
||||||
|
Reference in New Issue
Block a user