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

    r959 r985  
    2323  22 Nov 07 GKY Use CopyPresParams to fix presparam inconsistencies in menus
    2424  30 Dec 07 GKY Use CommaFmtULL
     25  29 Feb 08 GKY Use xfree where appropriate
    2526
    2627***********************************************************************/
     
    412413                      WinSetWindowText(hwndAutoview, obuff);
    413414                  }
    414                   free(obuff);
     415                  xfree(obuff);
    415416                }
    416                 free(ibuff);
     417                xfree(ibuff);
    417418              }
    418419              DosClose(handle);
     
    507508                if (*pszBuf)
    508509                  WinSetWindowText(hwndAutoview, pszBuf);
    509                 free(pszBuf);
     510                xfree(pszBuf);
    510511              }
    511512            }
     
    541542              rc = DosQueryPathInfo((CHAR *) mp1, FIL_QUERYEASFROMLIST,
    542543                                    (PVOID) & eaop, (ULONG) sizeof(EAOP2));
    543               free(pgealist);
     544              xfree(pgealist);
    544545              if (!rc) {
    545546                pfea = &eaop.fpFEA2List->list[0];
     
    591592                      }
    592593                      WinSetWindowText(hwndAutoMLE, pszBuf);
    593                       free(pszBuf);
     594                      xfree(pszBuf);
    594595                    }
    595596                  }
     
    605606                MLEsetreadonly(hwndAutoMLE, FALSE);
    606607              }
    607               free(pfealist);
     608              xfree(pfealist);
    608609            }
    609610          }
    610611        }
    611612      }
    612       free((CHAR *) mp1);
     613      xfree((CHAR *) mp1);
    613614    }
    614615    return 0;
     
    786787              PutComments(hwnd, currfile, ea);
    787788              PostMsg(hwnd, WM_COMMAND, MPFROM2SHORT(IDM_RESCAN, 0), MPVOID);
    788               free(ea);
     789              xfree(ea);
    789790            }
    790791          }
     
    836837          stopflag++;
    837838          if (!PostMsg(hwndAutoObj, UM_LOADFILE, MPFROMP(cf), MPVOID))
    838             free(cf);
     839            xfree(cf);
    839840        }
    840841      }
Note: See TracChangeset for help on using the changeset viewer.