* "directory0file0file0...0file00" for multiple files selected,
* "fullfilepath0" for single file. */
str = g_utf16_to_utf8(o.lpstrFile, -1, &items_read, NULL, &error);
- g_free(o.lpstrFile);
if (error != NULL) {
alertpanel_error(_("Could not convert file path back to UTF-8:\n\n%s"),
error->message);
debug_print("returned file path conversion to UTF-8 failed\n");
g_error_free(error);
+ g_free(o.lpstrFile);
return NULL;
}
file_list = g_list_append(file_list,
g_strconcat(dir, G_DIR_SEPARATOR_S, str, NULL));
}
+ g_free(str);
n += items_read + 1;
f = &o.lpstrFile[n];
}
-
-
-
-
+ g_free(o.lpstrFile);
return file_list;
}