summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-29 10:21:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-09-29 11:10:33 +0100
commitcea187b6ea2ca4dc8bda51c3616eafb6393531ba (patch)
tree3440514b3b728e33a3bde68825bb43ec56c7dc27
parente2c8fbb535c5df91073fd5acbeccf51b2f3153c0 (diff)
coverity#1325069 Resource leak
Change-Id: Ie02b77e17403474c65fbafa9ee2aa17bf0132417
-rw-r--r--chart2/source/view/main/3DChartObjects.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/main/3DChartObjects.cxx b/chart2/source/view/main/3DChartObjects.cxx
index 89caf0a73f3e..1b8cc7b14e8e 100644
--- a/chart2/source/view/main/3DChartObjects.cxx
+++ b/chart2/source/view/main/3DChartObjects.cxx
@@ -106,7 +106,7 @@ const TextCacheItem& TextCache::getText(OUString const & rText, bool bIs3dText)
memcpy(pBitmapBuf, buf, 3* nBmpWidth * nBmpHeight);
TextCacheItem *pItem = new TextCacheItem(pBitmapBuf, aText.GetSizePixel());
maTextCache.insert(rText, pItem);
-
+ Bitmap::ReleaseAccess(pAcc);
return *maTextCache.find(rText)->second;
}