diff -urNp anjuta-2.24.2.orig/plugins/class-gen/plugin.c anjuta-2.24.2/plugins/class-gen/plugin.c
--- anjuta-2.24.2.orig/plugins/class-gen/plugin.c 2009-03-16 01:11:45.000000000 +0530
+++ anjuta-2.24.2/plugins/class-gen/plugin.c 2009-03-17 01:16:31.000000000 +0530
@@ -216,14 +216,20 @@ cg_plugin_add_to_project (AnjutaClassGen
}
else
{
- *new_header_file = added_files->data;
- *new_source_file = g_list_next (added_files)->data;
+ GFile *file;
+ file = g_file_new_for_uri ((gchar*)added_files->data);
+ *new_header_file = g_file_get_path(file);
+ g_object_unref (file);
+ file = g_file_new_for_uri ((gchar*)g_list_next (added_files)->data);
+ *new_source_file = g_file_get_path(file);
+ g_object_unref (file);
result = TRUE;
}
g_free (curdir);
g_free (dirname);
+ g_list_foreach (added_files, (GFunc)g_free, NULL);
g_list_free (added_files);
g_list_free (filenames);