[ wxwindows-Patches-1674088 ] Release Window in wxSizerItem
SourceForge.net
noreply at sourceforge.net
Mon Mar 5 06:48:22 PST 2007
Patches item #1674088, was opened at 2007-03-05 15:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1674088&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Common
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: arst (arst)
Assigned to: Nobody/Anonymous (nobody)
Summary: Release Window in wxSizerItem
Initial Comment:
When setting a sizer to point to a new item (Window, sizer or spacer), the previous window will have a pointer to the wxSizerItem. This pointer is not released unless we explicitely do so. When setting a wxSizerItem to point to something new, we must release the old item.
The symtom was that on shutting down my app, the dangling pointer in wxWindow (to the containing sizer) triggered a crash.
So I added a Release method and modified the SetWindow, SetSizer and SetSpacer methods.
No doc needed for this, and the Release method is best as protected.
Keep up the good work!
// Arne Steinarson
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1674088&group_id=9863
More information about the wx-dev
mailing list