ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=c65ac2e5c3625c6ee6be41a8c48d859e707df24d

commit c65ac2e5c3625c6ee6be41a8c48d859e707df24d
Author: Andy Williams <a...@andywilliams.me>
Date:   Mon May 18 17:56:21 2015 +0100

    config: free up memory when removing projects
---
 src/bin/edi_config.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/edi_config.c b/src/bin/edi_config.c
index c0ea734..319b00e 100644
--- a/src/bin/edi_config.c
+++ b/src/bin/edi_config.c
@@ -359,6 +359,10 @@ _edi_config_project_remove(const char *path)
 
    _edi_config->projects = eina_list_remove(_edi_config->projects, project);
    _edi_config_save();
+
+   eina_stringshare_del(project->path);
+   eina_stringshare_del(project->name);
+   free(project);
 }
 
 void

-- 


Reply via email to