diff options
author | Rui Caridade <[email protected]> | 2018-09-10 21:43:27 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-09-18 14:33:59 -0400 |
commit | e7eda82218c5b4a15a6c26183d128053b9d2f9bc (patch) | |
tree | 941a7798c0be8452dd3bc5edc589f5ff445eff34 | |
parent | de3e05bcf31bd6397e62cf36d1319ff21caf3797 (diff) | |
download | mate-panel-e7eda82218c5b4a15a6c26183d128053b9d2f9bc.tar.bz2 mate-panel-e7eda82218c5b4a15a6c26183d128053b9d2f9bc.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |