|
From: SourceForge.net <no...@so...> - 2004-09-22 16:44:58
|
Bugs item #1032785, was opened at 2004-09-23 02:44 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442052&aid=1032785&group_id=45158 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: bork3d (bork3d) Assigned to: Nobody/Anonymous (nobody) Summary: DrawContext mask image initialisation Initial Comment: A "malloc debug: double free" occurs in Q3Bitmap_Empty. The pointer to be freed is garbage due to an uninitialised field in a TQ3MacDrawContextData structure declared on the stack. This can be fixed where the DrawingContext is initialized in e3drawcontext_mac_new(). /* E3MacDrawContext_New is being called without the mask image field explicitly set, causing problems in Q3Bitmap_Empty. * Callers _do_ however set maskState to kQ3False, so respect a valid mask image if maskState is kQ3True */ if (instanceData- >data.macData.theData.drawContextData.maskState == kQ3False) instanceData- >data.macData.theData.drawContextData.mask.image = NULL; Similar fixes should be applied to other platform specific DrawingContext initialisation routines, such as e3drawcontext_windc_new() etc ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=442052&aid=1032785&group_id=45158 |