diff finch/libgnt/gntfilesel.c @ 15964:8a54f74fecdf

plug some leaks
author Richard Nelson <wabz@pidgin.im>
date Thu, 29 Mar 2007 02:35:54 +0000
parents 0ef26ac647ac
children e05e5b148723
line wrap: on
line diff
--- a/finch/libgnt/gntfilesel.c	Thu Mar 29 01:27:40 2007 +0000
+++ b/finch/libgnt/gntfilesel.c	Thu Mar 29 02:35:54 2007 +0000
@@ -464,7 +464,7 @@
 {
 	char *ret;
 	if (sel->dirsonly) {
-		ret = g_strdup(g_path_get_dirname(gnt_entry_get_text(GNT_ENTRY(sel->location))));
+		ret = g_path_get_dirname(gnt_entry_get_text(GNT_ENTRY(sel->location)));
 	} else {
 		ret = g_strdup(gnt_entry_get_text(GNT_ENTRY(sel->location)));
 	}