free the path dirs
authorDana Jansens <danakj@orodu.net>
Thu, 3 Jun 2010 15:56:15 +0000 (11:56 -0400)
committerDana Jansens <danakj@orodu.net>
Thu, 3 Jun 2010 15:56:15 +0000 (11:56 -0400)
obt/paths.c

index b20eb48..bd6c177 100644 (file)
@@ -231,6 +231,9 @@ void obt_paths_unref(ObtPaths *p)
         for (it = p->autostart_dirs; it; it = g_slist_next(it))
             g_free(it->data);
         g_slist_free(p->autostart_dirs);
+        for (it = p->exec_dirs; it; it = g_slist_next(it))
+            g_free(it->data);
+        g_slist_free(p->exec_dirs);
         g_free(p->config_home);
         g_free(p->data_home);
         g_free(p->cache_home);