Changeset 1029 for trunk/dll/viewer.c


Ignore:
Timestamp:
Jun 23, 2008, 3:30:16 AM (17 years ago)
Author:
Gregg Young
Message:

Fixed early memory free; Added free_... functions to make fortify checking easier; Added fortify scopes; Delete now moves to trash can on systems with the xworkplace trash can installed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/viewer.c

    r1009 r1029  
    3636#include "notebook.h"                   // External viewers
    3737#include "fm3dll.h"
     38#include "fortify.h"
    3839
    3940#pragma data_seg(DATA1)
     
    99100    }
    100101  }
    101 
     102# ifdef FORTIFY
     103  Fortify_EnterScope();
     104# endif
    102105  vw = xmallocz(sizeof(XMLEWNDPTR), pszSrcFile, __LINE__);
    103106  if (!vw)
     
    891894          }
    892895        }
     896        //printf("%s %s %d\n ",vw->exportfilename, __FILE__, __LINE__); fflush(stdout);
    893897        if (!MLEexportfile(hwndMLE,
    894898                           vw->exportfilename,
     
    12541258        }
    12551259        xfree(vw, pszSrcFile, __LINE__);
     1260# ifdef FORTIFY
     1261  Fortify_LeaveScope();
     1262# endif
    12561263      }
    12571264      if (!dontclose &&
Note: See TracChangeset for help on using the changeset viewer.