summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 3a7a1fb3f169..108e78a1cbe7 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -129,11 +129,13 @@ OpenGLContext::~OpenGLContext()
void OpenGLContext::AddRef()
{
+ assert(mnRefCount > 0);
mnRefCount++;
}
void OpenGLContext::DeRef()
{
+ assert(mnRefCount > 0);
if( --mnRefCount == 0 )
delete this;
}