Mercurial > mplayer.hg
diff gui/ui/gtk/fileselect.c @ 33739:9f6d46d325de
Remove gfree() from interface.c.
Rename it nfree() and define it as macro.
author | ib |
---|---|
date | Thu, 07 Jul 2011 09:29:15 +0000 |
parents | 71c29e8ec68f |
children | 2c02269701bd |
line wrap: on
line diff
--- a/gui/ui/gtk/fileselect.c Thu Jul 07 08:48:46 2011 +0000 +++ b/gui/ui/gtk/fileselect.c Thu Jul 07 09:29:15 2011 +0000 @@ -32,6 +32,7 @@ #include "gui/app.h" #include "gui/interface.h" +#include "gui/util/mem.h" #include "gui/util/string.h" #include "help_mp.h" #include "mpcommon.h" @@ -371,7 +372,7 @@ char * tmp = fsHistory[i]; fsHistory[i]=fsHistory[0]; fsHistory[0]=tmp; return; } - gfree( (void **)&fsHistory[fsPersistant_MaxPos - 1] ); + nfree( fsHistory[fsPersistant_MaxPos - 1] ); for ( i=fsPersistant_MaxPos - 1;i;i-- ) fsHistory[i]=fsHistory[i - 1]; fsHistory[0]=gstrdup( subject ); } @@ -480,8 +481,8 @@ guiSetDF( guiInfo.Filename,fsSelectedDirectory,fsSelectedFile ); guiInfo.StreamType=STREAMTYPE_FILE; guiInfo.FilenameChanged=1; sub_fps=0; - gfree( (void **)&guiInfo.AudioFile ); - gfree( (void **)&guiInfo.Subtitlename ); + nfree( guiInfo.AudioFile ); + nfree( guiInfo.Subtitlename ); fs_PersistantHistory( get_current_dir_name_utf8() ); //totem, write into history break; case fsSubtitleSelector: