Skip to content
Permalink
Browse files

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:

GNOME/gnome-panel@73fa980#diff-5f461c83a31d7792b939f3a1be40c512
  • Loading branch information...
rcaridade145 authored and lukefromdc committed Sep 10, 2018
1 parent de3e05b commit e7eda82218c5b4a15a6c26183d128053b9d2f9bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);
}

0 comments on commit e7eda82

Please sign in to comment.
You can’t perform that action at this time.