Branch: refs/heads/master Author: Frank Lanitz frank@frank.uvena.de Committer: Frank Lanitz frank@frank.uvena.de Date: Mon, 31 Mar 2014 07:35:44 UTC Commit: 4abc8a4d14e1feafac3ba6f75b092ac2a29b30b3 https://github.com/geany/geany-plugins/commit/4abc8a4d14e1feafac3ba6f75b092a...
Log Message: ----------- Merge pull request #134 from scriptum/geanylatex-memleak1
Geanylatex: fix memory leak
Modified Paths: -------------- geanylatex/src/geanylatex.c
Modified: geanylatex/src/geanylatex.c 3 files changed, 3 insertions(+), 0 deletions(-) =================================================================== @@ -1265,6 +1265,8 @@ void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem, tmp_dir = g_path_get_dirname(doc->real_path); dir = g_dir_open(tmp_dir, 0, NULL);
+ if(dir == NULL) + g_free(tmp_dir); g_return_if_fail(dir != NULL);
foreach_dir(filename, dir) @@ -1275,6 +1277,7 @@ void glatex_insert_usepackage_dialog(G_GNUC_UNUSED GtkMenuItem * menuitem, glatex_parse_bib_file(fullpath, textbox); g_free(fullpath); } + g_free(tmp_dir); g_dir_close(dir); model = gtk_combo_box_get_model(GTK_COMBO_BOX(textbox)); gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model),
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).