Fix for a crash occurring when the window is resized.

Temporary Platform objects were registering themselves.
The move ctor would then initialize the final object in
the circular buffer (see PlatformSystem), but it would
leave the address of the temporary object registered in
the ObserversManager.
This commit is contained in:
King_DuckZ 2014-07-06 02:21:25 +02:00
parent 0c8e9b2d7c
commit b4ddfa8f4f
5 changed files with 27 additions and 5 deletions

View file

@ -140,6 +140,12 @@ namespace cloonel {
m_localData->resChangeNotifList.Remove(parID);
}
///------------------------------------------------------------------------
///------------------------------------------------------------------------
void SDLMain::SwapRegisteredForResChange (size_t parID, SizeNotifiableBase* parNotif) {
m_localData->resChangeNotifList.Update(parID, parNotif);
}
///------------------------------------------------------------------------
///------------------------------------------------------------------------
ushort2 SDLMain::WidthHeight() const noexcept {