diff options
Diffstat (limited to 'libslab/system-tile.c')
-rw-r--r-- | libslab/system-tile.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libslab/system-tile.c b/libslab/system-tile.c index 995754ef..598e6aa7 100644 --- a/libslab/system-tile.c +++ b/libslab/system-tile.c @@ -93,8 +93,14 @@ system_tile_new (const gchar *desktop_item_id, const gchar *title) mate_desktop_item_get_localestring (desktop_item, "Name")); } - if (! uri) + if (!uri) { + g_free (header_txt); + g_free (image_id); + if (desktop_item) { + mate_desktop_item_unref (desktop_item); + } return NULL; + } header = create_header (header_txt); |