Bug 653450 - gtkfilechooser crashes when added favorite
Ensure that display is set during drag-and-drop, and that string lists' memory is zeroed after allocation to prevent g_strfreev() from over-running.
This commit is contained in:
committed by
Kristian Rietveld
parent
cbc593bc22
commit
86794ce008
@ -121,10 +121,8 @@ make_list (const gchar *text,
|
||||
}
|
||||
|
||||
if (list)
|
||||
*list = g_new (gchar *, n_strings + 1);
|
||||
*list = g_new0 (gchar *, n_strings + 1);
|
||||
|
||||
(*list)[n_strings] = NULL;
|
||||
|
||||
i = n_strings;
|
||||
tmp_list = strings;
|
||||
while (tmp_list)
|
||||
|
||||
Reference in New Issue
Block a user