Skip to content

Commit 4c30c52

Browse files
rcaridade145raveit65
authored andcommitted
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
1 parent 2e35407 commit 4c30c52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mate-panel/panel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ drop_urilist (PanelWidget *panel,
684684
success = FALSE;
685685
}
686686

687-
g_object_unref (info);
687+
g_clear_object (&info);
688688
g_object_unref (file);
689689
}
690690

0 commit comments

Comments
 (0)