Opened 4 years ago

Closed 14 months ago

#22 closed defect (fixed)

Apparent memory leak in WM_DRAWITEM handler in mmfolder.c

Reported by: Lewis Rosenthal Owned by:
Priority: major Milestone: 0.3.0 first from Netlabs
Component: Classes Version: 0.2.9
Keywords: Cc:

Description

It seems that HBITMAP is not freed.

More detail reported in Arca Noae ticket 2756.

Attachments (1)

mmfolder.diff (29.3 KB ) - added by erdmann 14 months ago.
Changes in mmfolder.c taken against SVN rev 67

Download all attachments as: .zip

Change History (4)

comment:1 by erdmann, 14 months ago

added a diff file for mmfolder.c that should fix the issue.

Unfortunately, nepmd strips all space characters at end of lines, leading to many white-space only changes ...

Last edited 14 months ago by erdmann (previous) (diff)

by erdmann, 14 months ago

Attachment: mmfolder.diff added

Changes in mmfolder.c taken against SVN rev 67

comment:2 by erdmann, 14 months ago

SVN rev 69 is fixing the problem, however at this location:
http://trac.netlabs.org/cwmmclasses/browser/trunk/classes/c/c_mm/mmfolder.c#L586

needs to spell:
hbm=MMBitmap_cwmmQuerySmallBitmapHandle( (MMBitmap*) wpObject, ulIconSize);

comment:3 by erdmann, 14 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.