Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Wed, 27 Sep 2017 16:46:25 UTC Commit: 99dcc2344ebf23d40d5426035d0ae950b197cf14 https://github.com/geany/geany-plugins/commit/99dcc2344ebf23d40d5426035d0ae9...
Log Message: ----------- projectorganizer: Close dir created with g_dir_open() in some special cases
At the moment the directory isn't closed when tm_get_real_path() returns NULL or when the given path was already visited (happens e.g. with symlink loops).
Modified Paths: -------------- projectorganizer/src/prjorg-project.c
Modified: projectorganizer/src/prjorg-project.c 2 lines changed, 2 insertions(+), 0 deletions(-) =================================================================== @@ -82,6 +82,8 @@ static GSList *get_file_list(const gchar *utf8_path, GSList *patterns, { g_free(locale_path); g_free(real_path); + if (dir) + g_dir_close(dir); return NULL; }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).