summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Caridade <[email protected]>2018-09-10 21:43:27 +0100
committerraveit65 <[email protected]>2018-09-12 22:47:21 +0200
commit4c30c52e4857da9d23e284aa75b12c8ab62e2ee4 (patch)
tree6b441773bf5915e599c00a86f0014635a75f9740
parent2e35407bfe71cf0c9c5911102daf8ed2e7246d89 (diff)
downloadmate-panel-4c30c52e4857da9d23e284aa75b12c8ab62e2ee4.tar.bz2
mate-panel-4c30c52e4857da9d23e284aa75b12c8ab62e2ee4.tar.xz
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
-rw-r--r--mate-panel/panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mate-panel/panel.c b/mate-panel/panel.c
index e4f9fba3..ba384217 100644
--- a/mate-panel/panel.c
+++ b/mate-panel/panel.c
@@ -684,7 +684,7 @@ drop_urilist (PanelWidget *panel,
success = FALSE;
}
- g_object_unref (info);
+ g_clear_object (&info);
g_object_unref (file);
}