diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-16 00:58:11 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-16 01:01:01 +0100 |
commit | 577d7ecd494b38d673fbb84738f427f18353fcfc (patch) | |
tree | 2922229577f226db20c6931334a90c2288d367c6 /sc | |
parent | 9904fea6694f9f93ca049b75d7184260fb93ee68 (diff) |
coverity: fix memory leak
Change-Id: I5e293c67691e0efaded2c359a35e3bbb00dcb3d8
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewutil.cxx | 2 |
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; } |