ecore: fix memory leak when shutding down the application.
authorCedric BAIL <cedric.bail@free.fr>
Sat, 12 Jan 2019 01:58:23 +0000 (17:58 -0800)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 24 Jan 2019 05:20:19 +0000 (14:20 +0900)
Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D7653

src/lib/ecore/efl_loop.c

index 5a7166c..44e9c87 100644 (file)
@@ -173,6 +173,7 @@ efl_loop_exit_code_process(Eina_Value *value)
              out = stderr;
           }
         fprintf(out, "%s\n", msg);
+        free(msg);
      }
    return r;
 }
@@ -361,6 +362,8 @@ _efl_loop_efl_object_destructor(Eo *obj, Efl_Loop_Data *pd)
    pd->env.environ_copy = NULL;
    eina_lock_release(&_environ_lock);
 
+   eina_value_flush(&pd->exit_code);
+
    efl_destructor(efl_super(obj, EFL_LOOP_CLASS));
 }