Branch: refs/heads/master Author: Pavel Roschin roshin@scriptumplus.ru Committer: Pavel Roschin roshin@scriptumplus.ru Date: Sun, 30 Mar 2014 20:51:24 UTC Commit: 851d268d16170b2bc53ad686df08cce3a773a7be https://github.com/geany/geany-plugins/commit/851d268d16170b2bc53ad686df08cc...
Log Message: ----------- 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).