Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Wed, 14 May 2014 13:54:51 UTC Commit: 90ae03d4ad87bb71bfabbe686c285e8d8a0037a5 https://github.com/geany/geany-plugins/commit/90ae03d4ad87bb71bfabbe686c285e...
Log Message: ----------- gproject: Get rid of some memory leaks
Thanks to Pavel Roschin.
Modified Paths: -------------- gproject/src/gproject-project.c gproject/src/gproject-sidebar.c
Modified: gproject/src/gproject-project.c 6 lines changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -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);
Modified: gproject/src/gproject-sidebar.c 2 lines changed, 2 insertions(+), 0 deletions(-) =================================================================== @@ -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));
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).