summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2010-12-18 12:28:57 +0100
committerportix <portix@gmx.net>2010-12-18 12:28:57 +0100
commitee5240eccbd7c7e4707ec344a9d7607ca20ab72b (patch)
tree051ddcf8cb53c816ce846fb48cf910133fcce663 /src/util.c
parentf40e60657d16ae5335f665e133c443d755779878 (diff)
downloaddwb-ee5240eccbd7c7e4707ec344a9d7607ca20ab72b.zip
fixed some memory leaks
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 1edcc182..ac57b911 100644
--- a/src/util.c
+++ b/src/util.c
@@ -318,7 +318,7 @@ dwb_util_get_data_dir(const char *dir) {
}
FREE(path);
}
- return path;
+ return NULL;
}/*}}}*/
/* NAVIGATION {{{*/
@@ -341,7 +341,7 @@ dwb_navigation_new_from_line(const char *text) {
if (text) {
line = g_strsplit(text, " ", 2);
nv = dwb_navigation_new(line[0], line[1]);
- FREE(line);
+ g_strfreev(line);
}
return nv;
}/*}}}*/