Change window allocation/destruction to avoid undefined behaviour

Create a new window base class which holds the front/back pointers
and the window class.
This fixes the voluminous warning spam about deleted windows when using
UndefinedBehaviorSanitizer.
This commit is contained in:
Jonathan G Rennison
2018-06-06 18:14:51 +01:00
parent d8ab61cab3
commit 6573a67b69
4 changed files with 83 additions and 19 deletions

View File

@@ -755,6 +755,7 @@ enum GameOptionsInvalidationData {
};
struct Window;
struct WindowBase;
/** Number to differentiate different windows of the same class */
typedef int32 WindowNumber;