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:
John Ralls
2011-07-03 16:40:03 -07:00
committed by Kristian Rietveld
parent cbc593bc22
commit 86794ce008
3 changed files with 4 additions and 4 deletions

View File

@ -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)