diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-13 11:54:57 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-13 14:13:54 +0100 |
commit | a4bd382c8a6cf5a79898c692752408477cd4cfc5 (patch) | |
tree | ed153bf4df1d51d33b07fa8a44a2b27a0dd224b4 | |
parent | this old concept was just a bad idea by me (diff) | |
download | core-a4bd382c8a6cf5a79898c692752408477cd4cfc5.tar.gz core-a4bd382c8a6cf5a79898c692752408477cd4cfc5.zip |
add assert preventing memory leak
Change-Id: I0c659bf4fab2319f06df09dd11a768a295e95722
-rw-r--r-- | vcl/source/gdi/impgraph.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx index a8f1d0c7301b..deb143effa8b 100644 --- a/vcl/source/gdi/impgraph.cxx +++ b/vcl/source/gdi/impgraph.cxx @@ -943,6 +943,7 @@ sal_uLong ImpGraphic::ImplGetAnimationLoopCount() const void ImpGraphic::ImplSetContext( GraphicReader* pReader ) { + assert(!mpContext); mpContext = pReader; mbDummyContext = false; } |