87835fd841
on the wxWindows interface. There are many more changes here than absolutely required to fix the memory leaks. Instead, I've tried to clean things up so that it does the right thing, and is easier to read and maintain. - For events that the text mode interface is going to ignore anyway, I #ifdefed the event creation code instead of calling new and then delete. - now all synchronous events in siminterface.cc are created as local variables on the stack. Some of them were allocated with new before, and yes some of them leaked. - now I ignore the result of sim_to_ci_event (&event). It was always returning a pointer to the input event anyway. This makes the event sending code simpler. - wxmain.cc: - in the BxEvent handling functions, now all cases "break" down to common code at the end which deletes async events. This is easier to read than having each case handle the delete individually. - in OnLogMsg, do not delete the event here because it is now handled in the common code of OnSim2CIEvent instead. - thanks to Christophe for pointing out the location of the worst memory leak. |
||
---|---|---|
bochs | ||
bochs-performance | ||
CVSROOT | ||
sfsite |