* evas: fix a long standing bug. Don't know how no one
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Dec 2010 13:25:39 +0000 (13:25 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Dec 2010 13:25:39 +0000 (13:25 +0000)
else saw it before.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@55536 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/file/evas_module.c

index 241bb66..6f55ff8 100644 (file)
@@ -67,7 +67,10 @@ evas_module_paths_init(void)
    /* 3. libevas.so/../evas/modules/ */
    path2 = eina_module_symbol_path_get(evas_module_paths_init, "/evas/modules");
    if (path2 && path && (strcmp(path, path2) == 0))
-     free(path2);
+     {
+        free(path2);
+        path2 = NULL;
+     }
    else
      evas_module_paths = _evas_module_append(evas_module_paths, path2);