Mercurial > mplayer.hg
comparison gui/ui/gtk/playlist.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 | 052789583781 |
children | 2c02269701bd |
comparison
equal
deleted
inserted
replaced
33738:998f94e62a61 | 33739:9f6d46d325de |
---|---|
31 #include "help_mp.h" | 31 #include "help_mp.h" |
32 #include "stream/stream.h" | 32 #include "stream/stream.h" |
33 | 33 |
34 #include "gui/interface.h" | 34 #include "gui/interface.h" |
35 #include "gui/ui/widgets.h" | 35 #include "gui/ui/widgets.h" |
36 #include "gui/util/mem.h" | |
36 #include "playlist.h" | 37 #include "playlist.h" |
37 #include "tools.h" | 38 #include "tools.h" |
38 | 39 |
39 #include "gui/ui/pixmaps/open2.xpm" | 40 #include "gui/ui/pixmaps/open2.xpm" |
40 #include "gui/ui/pixmaps/dir2.xpm" | 41 #include "gui/ui/pixmaps/dir2.xpm" |
154 | 155 |
155 void HidePlayList( void ) | 156 void HidePlayList( void ) |
156 { | 157 { |
157 if ( !PlayList ) return; | 158 if ( !PlayList ) return; |
158 NrOfSelected=NrOfEntrys=0; | 159 NrOfSelected=NrOfEntrys=0; |
159 gfree( (void **)&CLListSelected ); gfree( (void **)&CLFileSelected ); | 160 nfree( CLListSelected ); nfree( CLFileSelected ); |
160 free( old_path ); | 161 free( old_path ); |
161 old_path=strdup( current_path ); | 162 old_path=strdup( current_path ); |
162 gtk_widget_hide( PlayList ); | 163 gtk_widget_hide( PlayList ); |
163 gtk_widget_destroy( PlayList ); | 164 gtk_widget_destroy( PlayList ); |
164 PlayList=NULL; | 165 PlayList=NULL; |