Changeset 139 for branches


Ignore:
Timestamp:
Dec 30, 2023, 1:56:13 PM (20 months ago)
Author:
erdmann
Message:

yet another fix for the trap that reports on my system in CWMMCls.LOG as "Trap occured in createBMPObjectProc, file c/c_image/cwimage.c, around line 245.": the passed CREATEBMP structure needs to be exclusively freed from the Window Function because the creation is posted (and therefore not immediately executed).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/v2.9_Lars/classes/c/c_image/cwimage.c

    r138 r139  
    159159              if(!pCreateBMP)
    160160                return (MRESULT) FALSE;
     161
    161162#ifdef DEBUG
    162163              SysWriteToTrapLog("In %s, line %d\n", __FUNCTION__, __LINE__);
     
    855856
    856857      WinPostMsg(hwndCreateBMP, WM_APPTERMINATENOTIFY,MPFROMP(pCreateBMP), MPFROM2SHORT(0, ACKEY_CREATE_SMALLBITMAP));
    857       free(pCreateBMP);
    858858      return NULLHANDLE;
    859859    }
Note: See TracChangeset for help on using the changeset viewer.