summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-16 00:58:11 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-16 01:01:01 +0100
commit577d7ecd494b38d673fbb84738f427f18353fcfc (patch)
tree2922229577f226db20c6931334a90c2288d367c6 /sc
parent9904fea6694f9f93ca049b75d7184260fb93ee68 (diff)
coverity: fix memory leak
Change-Id: I5e293c67691e0efaded2c359a35e3bbb00dcb3d8
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewutil.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewutil.cxx b/sc/source/ui/view/viewutil.cxx
index d5ad7829edc9..1fa65610460c 100644
--- a/sc/source/ui/view/viewutil.cxx
+++ b/sc/source/ui/view/viewutil.cxx
@@ -379,6 +379,8 @@ bool ScViewUtil::IsFullScreen( SfxViewShell& rViewShell )
if (rBindings.QueryState( SID_WIN_FULLSCREEN, pItem ) >= SFX_ITEM_DEFAULT)
bIsFullScreen = static_cast< SfxBoolItem* >( pItem )->GetValue();
+ delete pItem;
+
return bIsFullScreen;
}