From b00317e90cf29b933dae2d5365f6f674f1b633fb Mon Sep 17 00:00:00 2001 From: Jonny Date: Sat, 31 Aug 2019 16:34:02 +0100 Subject: [PATCH] Initialise m_context correctly in SFContext constructors --- src/SFML/Window/OSX/SFContext.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SFML/Window/OSX/SFContext.mm b/src/SFML/Window/OSX/SFContext.mm index ab1e04ce7..4bd3c3eb2 100644 --- a/src/SFML/Window/OSX/SFContext.mm +++ b/src/SFML/Window/OSX/SFContext.mm @@ -42,6 +42,7 @@ namespace priv //////////////////////////////////////////////////////////// SFContext::SFContext(SFContext* shared) : +m_context(0), m_view(0), m_window(0) { @@ -58,6 +59,7 @@ m_window(0) //////////////////////////////////////////////////////////// SFContext::SFContext(SFContext* shared, const ContextSettings& settings, const WindowImpl* owner, unsigned int bitsPerPixel) : +m_context(0), m_view(0), m_window(0) { @@ -76,6 +78,7 @@ m_window(0) //////////////////////////////////////////////////////////// SFContext::SFContext(SFContext* shared, const ContextSettings& settings, unsigned int width, unsigned int height) : +m_context(0), m_view(0), m_window(0) {