comparison 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
comparison
equal deleted inserted replaced
15963:26a5869b3165 15964:8a54f74fecdf
462 462
463 char *gnt_file_sel_get_selected_file(GntFileSel *sel) 463 char *gnt_file_sel_get_selected_file(GntFileSel *sel)
464 { 464 {
465 char *ret; 465 char *ret;
466 if (sel->dirsonly) { 466 if (sel->dirsonly) {
467 ret = g_strdup(g_path_get_dirname(gnt_entry_get_text(GNT_ENTRY(sel->location)))); 467 ret = g_path_get_dirname(gnt_entry_get_text(GNT_ENTRY(sel->location)));
468 } else { 468 } else {
469 ret = g_strdup(gnt_entry_get_text(GNT_ENTRY(sel->location))); 469 ret = g_strdup(gnt_entry_get_text(GNT_ENTRY(sel->location)));
470 } 470 }
471 return ret; 471 return ret;
472 } 472 }