Skip to content
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:

  • Loading branch information
rcaridade145 authored and raveit65 committed Sep 12, 2018
1 parent 2e35407 commit 4c30c52e4857da9d23e284aa75b12c8ab62e2ee4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit 4c30c52

Please sign in to comment.