From 5766579cfcf16e6fa5519bb0f82ffc159f2143aa Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Thu, 25 Nov 2010 02:12:08 -0800 Subject: [PATCH] Do not crash in file dialog --- moo/mooutils/moofiledialog.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moo/mooutils/moofiledialog.c b/moo/mooutils/moofiledialog.c index c44b3d2a..01312b07 100644 --- a/moo/mooutils/moofiledialog.c +++ b/moo/mooutils/moofiledialog.c @@ -461,7 +461,10 @@ uri_list_to_files (GSList *list) flocs = moo_file_array_new (); while (list) + { moo_file_array_take (flocs, g_file_new_for_uri (list->data)); + list = list->next; + } return flocs; }