OpenXcom Forum

Contributions => Programming => Topic started by: sir_nacnud on September 25, 2010, 10:18:06 pm

Title: Fixed Virtual Destructors
Post by: sir_nacnud on September 25, 2010, 10:18:06 pm
The Target and ImageButton classes needed their destructors to be virtual.  While I didn't see any places in the code base where having these base classes' destructors non-virtual caused a memory leak, it could have caused one in the future.

Attached patch contains the fixes.
Title: Re: Fixed Virtual Destructors
Post by: SupSuper on September 27, 2010, 11:01:34 pm
Thanks, added.