changeset 35852:1eb092275eb8

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.
author ib
date Sun, 10 Mar 2013 14:28:10 +0000
parents 3ad8e723bb09
children 3ee9fd074b8c
files gui/dialog/fileselect.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/fileselect.c	Sun Mar 10 14:27:22 2013 +0000
+++ b/gui/dialog/fileselect.c	Sun Mar 10 14:28:10 2013 +0000
@@ -398,8 +398,8 @@
    }
  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;