summaryrefslogtreecommitdiff
path: root/libslab/app-shell.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-16 14:28:44 +0300
committerinfirit <[email protected]>2014-11-28 09:20:42 +0100
commite1d4af90d002d0409f5838e496ae4f944d7ca512 (patch)
tree28b7813df43dd3ea3691b848059421f62268b0fd /libslab/app-shell.c
parent8b9fbc9337bd1b8c8889de7d139f8d6ee93a3de3 (diff)
downloadmate-control-center-e1d4af90d002d0409f5838e496ae4f944d7ca512.tar.bz2
mate-control-center-e1d4af90d002d0409f5838e496ae4f944d7ca512.tar.xz
don't leak memory
Diffstat (limited to 'libslab/app-shell.c')
-rw-r--r--libslab/app-shell.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libslab/app-shell.c b/libslab/app-shell.c
index 19d98bf2..8a09ec08 100644
--- a/libslab/app-shell.c
+++ b/libslab/app-shell.c
@@ -1184,6 +1184,12 @@ generate_new_apps (AppShellData * app_data)
{
g_object_unref (file);
g_warning ("Cant get vfs info for %s\n", uri);
+ if (new_apps_category) {
+ g_free (new_apps_category->category);
+ g_free (new_apps_category);
+ }
+ g_free (all_apps_file_name);
+ g_strfreev (all_apps_split);
return;
}
filetime = (long) g_file_info_get_attribute_uint64 (info,