From e7eda82218c5b4a15a6c26183d128053b9d2f9bc Mon Sep 17 00:00:00 2001 From: Rui Caridade Date: Mon, 10 Sep 2018 21:43:27 +0100 Subject: panel: avoid a critical g_file_query_info can return NULL. Use g_clear_object to make sure we don't try to unref NULL pointer. Origin commit: https://github.com/GNOME/gnome-panel/commit/73fa9808f24ee6a95e12a8558d6b1f6513b78693#diff-5f461c83a31d7792b939f3a1be40c512 --- mate-panel/panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mate-panel/panel.c b/mate-panel/panel.c index aa129e4b..f67b2ff1 100644 --- a/mate-panel/panel.c +++ b/mate-panel/panel.c @@ -683,7 +683,7 @@ drop_urilist (PanelWidget *panel, success = FALSE; } - g_object_unref (info); + g_clear_object (&info); g_object_unref (file); } -- cgit v1.2.1