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

    r907 r985  
    1313  31 Aug 06 SHL Use _fsopen to avoid noise complaints
    1414  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
     15  29 Feb 08 GKY Use xfree where appropriate
    1516
    1617***********************************************************************/
     
    8384          info->res = xstrdup(s, pszSrcFile, __LINE__);
    8485          if (!info->res)
    85             free(info);
     86            xfree(info);
    8687          else {
    8788            x++;
     
    151152    info->res = xstrdup(res, pszSrcFile, __LINE__);
    152153    if (!info->res)
    153       free(info);
     154      xfree(info);
    154155    else {
    155156      info->next = NULL;
     
    161162        info = reshead;
    162163        reshead = reshead->next;
    163         free(info);
     164        xfree(info);
    164165      }
    165166      return TRUE;
     
    184185      else
    185186        reshead = info->next;
    186       free(info->res);
    187       free(info);
     187      xfree(info->res);
     188      xfree(info);
    188189      return TRUE;
    189190    }
     
    201202  while (info) {
    202203    next = info->next;
    203     free(info->res);
    204     free(info);
     204    xfree(info->res);
     205    xfree(info);
    205206    info = next;
    206207  }
     
    439440                   "%s", GetPString(IDS_CANTSTARTNETUSETEXT));
    440441          if (!mp2 || (ULONG) mp2 == 1041 || info->failedonce)
    441             free(info);
     442            xfree(info);
    442443          break;
    443444        }
     
    728729      while (info) {
    729730        next = info->next;
    730         free(info);
     731        xfree(info);
    731732        info = next;
    732733      }
Note: See TracChangeset for help on using the changeset viewer.