Mercurial > audlegacy
changeset 4362:0ea092cbb49f
eggsmclient: egg_desktop_file_new_from_key_file leaks memory (Bugzilla #209)
author | Jussi Judin <jjudin+audacious@iki.fi> |
---|---|
date | Sun, 23 Mar 2008 14:30:38 +0100 |
parents | 3cd896ac4d49 |
children | 80feba8e9034 |
files | src/libeggsmclient/eggdesktopfile.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/libeggsmclient/eggdesktopfile.c Tue Mar 18 15:05:34 2008 +0100 +++ b/src/libeggsmclient/eggdesktopfile.c Sun Mar 23 14:30:38 2008 +0100 @@ -202,6 +202,7 @@ if (!exec) { egg_desktop_file_free (desktop_file); + g_free(type); return NULL; } @@ -234,6 +235,7 @@ if (!url) { egg_desktop_file_free (desktop_file); + g_free(type); return NULL; } g_free (url); @@ -243,6 +245,8 @@ else desktop_file->type = EGG_DESKTOP_FILE_TYPE_UNRECOGNIZED; + g_free(type); + /* Check the Icon key */ desktop_file->icon = g_key_file_get_string (key_file, EGG_DESKTOP_FILE_GROUP,