Changeset 985 for trunk/dll/tools.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/tools.c

    r907 r985  
    1717  05 Sep 06 SHL Sync with standard source formatting
    1818  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
     19  29 Feb 08 GKY Use xfree where appropriate
    1920
    2021***********************************************************************/
     
    5152  qtloaded = TRUE;
    5253  for (x = 0; x < 50 && quicktool[x]; x++) {
    53     free(quicktool[x]);
     54    xfree(quicktool[x]);
    5455    quicktool[x] = NULL;
    5556  }
     
    265266        if (prev)
    266267          prev->next = info->next;
    267         if (info->help)
    268           free(info->help);
    269         if (info->text)
    270           free(info->text);
    271         free(info);
     268        xfree(info->help);
     269        xfree(info->text);
     270        xfree(info);
    272271        fToolsChanged = TRUE;
    273272        break;
     
    365364  while (tool) {
    366365    next = tool->next;
    367     if (tool->help)
    368       free(tool->help);
    369     if (tool->text)
    370       free(tool->text);
    371     free(tool);
     366    xfree(tool->help);
     367    xfree(tool->text);
     368    xfree(tool);
    372369    tool = next;
    373370  }
     
    716713        if (tool) {                     /* just editing strings... */
    717714          istext = ((tool->flags & T_TEXT) != 0);
    718           if (tool->help)
    719             free(tool->help);
     715          xfree(tool->help);
    720716          tool->help = NULL;
    721           if (tool->text)
    722             free(tool->text);
     717          xfree(tool->text);
    723718          tool->text = NULL;
    724719          if (*help)
Note: See TracChangeset for help on using the changeset viewer.