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

    r959 r985  
    5252  10 Feb 08 GKY Implement bubble help for bitmap menu items
    5353  15 Feb 08 SHL Sync with settings menu rework
     54  29 Feb 08 GKY Use xfree where appropriate
    5455
    5556***********************************************************************/
     
    14371438        if (!dcd->info->extract) {
    14381439          Runtime_Error(pszSrcFile, __LINE__, "no extract");
    1439           free(s);
     1440          xfree(s);
    14401441          return 0;
    14411442        }
     
    14671468        }
    14681469        // printf("%s %d UM_ENTER %s %s\n",__FILE__, __LINE__,filename, s); fflush(stdout);     // 10 Mar 07 SHL hang
    1469         free(s);
     1470        xfree(s);
    14701471        if (IsFile(filename) == 1) {
    14711472#if 1 // 06 Oct 07 SHL fixme to be gone - set to 0 for ticket #58 testing
     
    17461747                  strcat(p, temp);
    17471748                  li->list[x] = p;
    1748                   free(temp);
     1749                  xfree(temp);
    17491750                }
    17501751              }
     
    19931994      FreeList(dcd->lastselection);
    19941995      WinSendMsg(dcd->hwndCnr, UM_CLOSE, MPVOID, MPVOID);
    1995       free(dcd);
     1996      xfree(dcd);
    19961997      WinSetWindowPtr(dcd->hwndCnr, QWL_USER, NULL);
    19971998    }
     
    25402541      ret = StartMLEEditor(dcd->hwndParent,
    25412542                           (INT) mp1, (CHAR *) mp2, dcd->hwndFrame);
    2542       free((CHAR *) mp2);
     2543      xfree((CHAR *) mp2);
    25432544      return MRFROMLONG(ret);
    25442545    }
     
    29072908                BldFullPathName(s, dcd->workdir, li->list[x]);
    29082909                if (IsFile(s) != 1) {
    2909                   free(li->list[x]);
     2910                  xfree(li->list[x]);
    29102911                  li->list[x] = NULL;
    29112912                  for (y = x; li->list[y]; y++)
     
    29192920                  p = xstrdup(s, pszSrcFile, __LINE__);
    29202921                  if (p) {
    2921                     free(li->list[x]);
     2922                    xfree(li->list[x]);
    29222923                    li->list[x] = p;
    29232924                  }
     
    29672968            }
    29682969            else
    2969               free(li);
     2970              xfree(li);
    29702971          }
    29712972        }
     
    32283229              if (!PostMsg(dcd->hwndObject, UM_ENTER, MPFROMP(s), MPVOID)) {
    32293230                Runtime_Error(pszSrcFile, __LINE__, "post");
    3230                 free(s);
     3231                xfree(s);
    32313232              }
    32323233            }
     
    35213522                     IDS_WINCREATEWINDOW);
    35223523          PostMsg(hwndClient, WM_CLOSE, MPVOID, MPVOID);
    3523           free(dcd);
     3524          xfree(dcd);
    35243525          hwndFrame = (HWND) 0;
    35253526        }
Note: See TracChangeset for help on using the changeset viewer.