diff options
author | Daniel d'Andrada <daniel.dandrada@canonical.com> | 2012-02-08 18:42:36 -0200 |
---|---|---|
committer | Daniel d'Andrada <daniel.dandrada@canonical.com> | 2012-02-08 18:42:36 -0200 |
commit | 817be57dddbcc9e9b8935bb65e95b91dd6ca03f0 (patch) | |
tree | 1d09ca745179083fddad016e8d7bf08b23f937d1 | |
parent | 02867e7e4f407344e31adf99754557d17d8a5f5f (diff) | |
download | ayatana-indicator-messages-817be57dddbcc9e9b8935bb65e95b91dd6ca03f0.tar.gz ayatana-indicator-messages-817be57dddbcc9e9b8935bb65e95b91dd6ca03f0.tar.bz2 ayatana-indicator-messages-817be57dddbcc9e9b8935bb65e95b91dd6ca03f0.zip |
Fix memory leak: Free path string.
The path was being created in build_launchers (line 1427)
but never freed.
-rw-r--r-- | src/messages-service.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/messages-service.c b/src/messages-service.c index 44e922e..a21435c 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -1301,6 +1301,7 @@ build_launcher (gpointer data) g_file_get_contents(path, &desktop, NULL, NULL); if (desktop == NULL) { + g_free(path); return FALSE; } @@ -1310,6 +1311,7 @@ build_launcher (gpointer data) build_launcher_core(trimdesktop); g_free(trimdesktop); + g_free(path); return FALSE; } @@ -1323,6 +1325,7 @@ build_launcher_keyfile (gpointer data) build_launcher_core(desktop); g_free(desktop); } + g_free(path); return FALSE; } |