summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2014-06-15 06:50:14 +0200
committerPeter Hofmann <scm@uninformativ.de>2014-06-15 06:50:14 +0200
commit48b326dfe4507a5f05ce6b40429bce1c4df227d2 (patch)
tree2305b35274751ae86278cc2317b3e9a82a3e00ed
parent251b68114afe0033b36ade299ff2a72466f97652 (diff)
downloadlariza-48b326dfe4507a5f05ce6b40429bce1c4df227d2.tar.gz
Fix minor memleak
-rw-r--r--zea.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/zea.c b/zea.c
index 94e7454..b90dc77 100644
--- a/zea.c
+++ b/zea.c
@@ -444,6 +444,7 @@ zea_launch_tabbed(void)
GError *err = NULL;
gchar *output = NULL;
char *argv[] = { "tabbed", "-c", "-d", NULL };
+ Window plug_into;
if (!g_spawn_async_with_pipes(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL,
NULL, NULL, NULL, &tabbed_stdout, NULL,
@@ -465,7 +466,9 @@ zea_launch_tabbed(void)
g_io_channel_shutdown(tabbed_stdout_channel, FALSE, NULL);
g_strstrip(output);
- return strtol(output, NULL, 16);
+ plug_into = strtol(output, NULL, 16);
+ g_free(output);
+ return plug_into;
}
void