fix memory leak while testing for correct Clone() implementation (closes #10304)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d181e877b0
commit
f7ae43f080
@ -282,6 +282,7 @@ static bool DoCommonPostInit()
|
||||
wxLogWarning("The event class '%s' does not correctly implement Clone()!",
|
||||
ci->GetClassName());
|
||||
|
||||
delete cloned;
|
||||
delete test;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user