From 8863e036851576266a76224d4d7db83e02bc6d8e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 16 May 2016 18:52:39 +0100 Subject: [PATCH] Replaced static ref_ptr<> with observer_ptr<> to avoid local static references hanging around. --- src/osgViewer/GraphicsWindowWin32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgViewer/GraphicsWindowWin32.cpp b/src/osgViewer/GraphicsWindowWin32.cpp index 9d50b7273..862b8b6e4 100644 --- a/src/osgViewer/GraphicsWindowWin32.cpp +++ b/src/osgViewer/GraphicsWindowWin32.cpp @@ -323,9 +323,9 @@ class Win32WindowingSystem : public osg::GraphicsContext::WindowingSystemInterfa } // Access the Win32 windowing system through this singleton class. - static osg::ref_ptr& getInterface() + static osg::observer_ptr& getInterface() { - static osg::ref_ptr s_win32Interface; + static osg::observer_ptr s_win32Interface; return s_win32Interface; }