summaryrefslogtreecommitdiff
path: root/drawinglayer/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-03-07 12:54:21 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-07 13:13:23 +0000
commit2c85769d94a8caaa62be83ce6c94ad31b57f8723 (patch)
tree1d136d44bf95944b4b07263453f2b73b0eb289ef /drawinglayer/source
parent81b3adfcf22f53951f071596e7a0c81b47fb47ea (diff)
make sure Release is called if one of two Acquires failed
checking the body of ReleaseAccess in vcl its safe to pass NULL to them, so keep it simple Change-Id: I5f057f9c79f0787d670869af4114c989e7f1562a
Diffstat (limited to 'drawinglayer/source')
-rw-r--r--drawinglayer/source/processor3d/zbufferprocessor3d.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/drawinglayer/source/processor3d/zbufferprocessor3d.cxx b/drawinglayer/source/processor3d/zbufferprocessor3d.cxx
index 5bdb354ee03c..31c96f8dd1ca 100644
--- a/drawinglayer/source/processor3d/zbufferprocessor3d.cxx
+++ b/drawinglayer/source/processor3d/zbufferprocessor3d.cxx
@@ -56,7 +56,7 @@ namespace
BitmapWriteAccess* pContent = aContent.AcquireWriteAccess();
BitmapWriteAccess* pAlpha = aAlpha.AcquireWriteAccess();
- if(pContent && pAlpha)
+ if (pContent && pAlpha)
{
if(mnAntiAlialize)
{
@@ -117,11 +117,11 @@ namespace
}
}
}
-
- aContent.ReleaseAccess(pContent);
- aAlpha.ReleaseAccess(pAlpha);
}
+ aAlpha.ReleaseAccess(pAlpha);
+ aContent.ReleaseAccess(pContent);
+
aRetval = BitmapEx(aContent, aAlpha);
// #i101811# set PrefMapMode and PrefSize at newly created Bitmap