Hi Pavel,
thanks for noticing, I've just pushed the suggested fixes to the plugins repository.
Cheers, Jiri
On Fri, May 9, 2014 at 10:07 PM, Pavel Roschin roshin@scriptumplus.ru wrote:
Found several memory leaks in GProject plugin.
gproject-project.c:467: void gprj_project_close(void) { ... g_free(g_prj->source_patterns); g_free(g_prj->header_patterns); g_free(g_prj->ignored_dirs_patterns);
here should be g_strfreev. It is corect to g_free them but it causes leak.
Same error in gprj_project_read_properties_tab (gproject-project.c:372) and maybe somewhere else.
Another leaks: build_path (gproject-sidebar.c:192) build_path (gproject-sidebar.c:183)
Caller should free memory after gtk_tree_model_get.
-- Best regards, Pavel Roschin aka RPG