[wx-dev] #9740: wxInitAllImageHandlers means the handlers are not
correctly cleaned up when application exits
wxTrac
noreply at wxsite.net
Tue Jul 15 08:24:02 PDT 2008
Ticket URL: <http://trac.wxwidgets.org/ticket/9740>
#9740: wxInitAllImageHandlers means the handlers are not correctly cleaned up when
application exits
----------------------------------------+-----------------------------------
Reporter: dparnham | Owner:
Type: defect | Status: new
Priority: low | Milestone:
Component: GUI-all | Version: 2.8.x
Keywords: image handlers memory leak | Blockedby:
Patch: 0 | Blocking:
----------------------------------------+-----------------------------------
The wxInitAllImageHandlers function calls the wxImage::AddHandler function
multiple times, adding new handlers to the wxList sm_handlers.
When the application exits these handlers are not deleted automatically as
the static list is cleaned up and therefore show up as a memory leak.
Although this is not normally a problem, since the program is exiting
anyway, it does get in the way when trying to track down other memory
related issues via programs such as valgrind.
--
Ticket URL: <http://trac.wxwidgets.org/ticket/9740>
More information about the wx-dev
mailing list