[MPlayer-cvslog] r35946 - trunk/gui/dialog/fileselect.c

ib subversion at mplayerhq.hu
Sun Mar 10 15:28:10 CET 2013


Author: ib
Date: Sun Mar 10 15:28:10 2013
New Revision: 35946

Log:
Replace nfree() by free().

In the for-loop to follow, the entry will be immediately assigned
a new value, so no need to explicitly set it NULL first.

Additionally, relocate statement for cosmetic reasons.

Modified:
   trunk/gui/dialog/fileselect.c

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Sun Mar 10 15:27:22 2013	(r35945)
+++ trunk/gui/dialog/fileselect.c	Sun Mar 10 15:28:10 2013	(r35946)
@@ -398,8 +398,8 @@ static void fs_PersistantHistory( char *
    }
  if ( i == FF_ARRAY_ELEMS(fsHistory) )
   {
-   nfree( fsHistory[--i] );
    entry=strdup( subject );
+   free( fsHistory[--i] );
   }
  for ( ;i;i-- ) fsHistory[i]=fsHistory[i - 1];
  fsHistory[0]=entry;


More information about the MPlayer-cvslog mailing list