[MPlayer-dev-eng] [PATCH] gmplayer fsFileSelect related fixes

Sergey Pinaev dfo at antex.ru
Mon Apr 9 08:11:21 CEST 2007


On Sun, 08 Apr 2007 22:52:05 +1100
Vadim Pisarev <plv at farpost.com> wrote:

> -   gtk_entry_set_text( GTK_ENTRY( fsPathCombo ),(unsigned char *)get_current_dir_name() );
> +   gtk_entry_set_text( GTK_ENTRY( fsPathCombo ),(unsigned char *)g_filename_to_utf8(get_current_dir_name(), -1, NULL, NULL, NULL) );

and who will free memory allocated by g_filename_to_utf8() ? Pushkin? =)

(btw, afaiu get_current_dir_name() returns malloc()ed string, that should
be free()d too)

-- 
mail="Sergey Pinaev <dfo at antex.ru>"
url="http://`echo $mail | sed 's/.* <\(.*\)@\(.*\)>/\1.\2/'`"



More information about the MPlayer-dev-eng mailing list