Changeset 985 for trunk/dll/walkem.c


Ignore:
Timestamp:
Mar 1, 2008, 2:37:14 AM (17 years ago)
Author:
Gregg Young
Message:

Update sizes dialog (ticket 44); Make max command line length user settable (ticket 199); use xfree for free in most cases (ticket 212); initial code to check for valid ini file (ticket 102); Some additional refactoring and structure rework; Some documentation updates;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/walkem.c

    r966 r985  
    2525  20 Jan 08 GKY Walk & walk2 dialogs now save and restore size and position
    2626  19 Feb 08 JBS Add "State at last FM/2 close" to the states combo box
     27  29 Feb 08 GKY Use xfree where appropriate
     28  29 Feb 08 GKY Refactor global command line variables to notebook.h
    2729
    2830***********************************************************************/
     
    4345#include "errutil.h"                    // Dos_Error...
    4446#include "strutil.h"                    // GetPString
     47#include "notebook.h"                   // targetdirectory
    4548#include "fm3dll.h"
    4649
     
    337340          info->path = xstrdup(s, pszSrcFile, __LINE__);
    338341          if (!info->path)
    339             free(info);
     342            xfree(info);
    340343          else {
    341344            info->next = NULL;
     
    430433            else
    431434              ldirhead = info->next;
    432             free(info->path);
    433             free(info);
     435            xfree(info->path);
     436            xfree(info);
    434437            break;
    435438          }
     
    443446        info->path = xstrdup(path, pszSrcFile, __LINE__);
    444447        if (!info->path)
    445           free(info);
     448          xfree(info);
    446449        else {
    447450          info->next = NULL;
     
    484487        else
    485488          udirhead = info->next;
    486         free(info->path);
    487         free(info);
     489        xfree(info->path);
     490        xfree(info);
    488491        fUdirsChanged = TRUE;
    489492        return TRUE;
     
    501504        else
    502505          ldirhead = info->next;
    503         free(info->path);
    504         free(info);
     506        xfree(info->path);
     507        xfree(info);
    505508        return TRUE;
    506509      }
     
    525528        else
    526529          ldirhead = info->next;
    527         free(info->path);
    528         free(info);
     530        xfree(info->path);
     531        xfree(info);
    529532        return TRUE;
    530533      }
     
    11951198      if (wa->changed)
    11961199        WinSendMsg(hwnd, UM_SETUP3, MPVOID, MPVOID);
    1197       free(wa);
     1200      xfree(wa);
    11981201      WinDismissDlg(hwnd, 0);
    11991202      break;
Note: See TracChangeset for help on using the changeset viewer.