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:
parent
0c8e9b2d7c
commit
b4ddfa8f4f
5 changed files with 27 additions and 5 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue