X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=obt%2Fpaths.c;h=d2e230dffd028e39cf144b6811c559536eda2e0c;hb=d9d65b73853d485852f6d6bf6808af0ebb6a90f5;hp=8afe4f711fe67b76cca7debeb55524ac98119615;hpb=3afa20de54814b1abb447542d72c3b795892932d;p=chaz%2Fopenbox diff --git a/obt/paths.c b/obt/paths.c index 8afe4f71..d2e230df 100644 --- a/obt/paths.c +++ b/obt/paths.c @@ -126,7 +126,7 @@ static void find_uid_gid(uid_t *u, gid_t **g, guint *n) } endgrent(); - qsort(*g, sizeof(gid_t), *n, gid_cmp); + qsort(*g, *n, sizeof(gid_t), gid_cmp); } ObtPaths* obt_paths_new(void) @@ -231,9 +231,13 @@ 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); + g_free(p->gid); g_slice_free(ObtPaths, p); }