Mercurial > pidgin.yaz
comparison libpurple/ft.c @ 31996:313fcc5be568
ft: Fix a leak of 'utf8'
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 05 May 2011 03:07:35 +0000 |
parents | 45496e1dfe5c |
children | d61170e263b4 |
comparison
equal
deleted
inserted
replaced
31995:2919dee50112 | 31996:313fcc5be568 |
---|---|
675 } | 675 } |
676 | 676 |
677 purple_xfer_set_local_filename(xfer, filename); | 677 purple_xfer_set_local_filename(xfer, filename); |
678 purple_xfer_set_size(xfer, st.st_size); | 678 purple_xfer_set_size(xfer, st.st_size); |
679 } else { | 679 } else { |
680 utf8 = g_strdup(filename); | |
681 purple_xfer_set_local_filename(xfer, filename); | 680 purple_xfer_set_local_filename(xfer, filename); |
682 } | 681 } |
683 | 682 |
684 base = g_path_get_basename(filename); | 683 base = g_path_get_basename(filename); |
685 utf8 = g_filename_to_utf8(base, -1, NULL, NULL, NULL); | 684 utf8 = g_filename_to_utf8(base, -1, NULL, NULL, NULL); |