Skip to content

Commit

Permalink
panel: avoid a critical
Browse files Browse the repository at this point in the history
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 raveit65 committed Sep 12, 2018
1 parent 2e35407 commit 4c30c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mate-panel/panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ drop_urilist (PanelWidget *panel,
success = FALSE;
}

g_object_unref (info);
g_clear_object (&info);
g_object_unref (file);
}

Expand Down

0 comments on commit 4c30c52

Please sign in to comment.