Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gproject: Get rid of some memory leaks

Thanks to Pavel Roschin.
  • Loading branch information...
commit 90ae03d4ad87bb71bfabbe686c285e8d8a0037a5 1 parent bc6c972
@techee techee authored
View
6 gproject/src/gproject-project.c
@@ -473,9 +473,9 @@ void gprj_project_close(void)
deferred_op_queue_clean();
- g_free(g_prj->source_patterns);
- g_free(g_prj->header_patterns);
- g_free(g_prj->ignored_dirs_patterns);
+ g_strfreev(g_prj->source_patterns);
+ g_strfreev(g_prj->header_patterns);
+ g_strfreev(g_prj->ignored_dirs_patterns);
g_hash_table_destroy(g_prj->file_tag_table);
View
2  gproject/src/gproject-sidebar.c
@@ -185,12 +185,14 @@ static gchar *build_path(GtkTreeIter *iter)
path = g_strdup(name);
else
setptr(path, g_build_filename(name, path, NULL));
+ g_free(name);
node = parent;
}
gtk_tree_model_get(model, &node, FILEVIEW_COLUMN_NAME, &name, -1);
setptr(path, g_build_filename(name, path, NULL));
+ g_free(name);
setptr(path, g_build_filename(geany_data->app->project->base_path, path, NULL));
Please sign in to comment.
Something went wrong with that request. Please try again.