summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-08-07 14:00:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-08-07 18:00:45 +0100
commit92c5536cd5a3d1854be7fc0c50664aa6e20465d4 (patch)
treee390654fa5c141b8833d20bdb5e03e6a49933bac /svx
parente5e24bdc33723ed4e055a609a9574edb644d580f (diff)
coverity#982278 Resource leak in object
Change-Id: I0d0cf666ac8ecd55b4d3ba783b1e17670d6eb566
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/dialmgr.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/svx/source/dialog/dialmgr.cxx b/svx/source/dialog/dialmgr.cxx
index bf9f976e794b..b0d29ca48c57 100644
--- a/svx/source/dialog/dialmgr.cxx
+++ b/svx/source/dialog/dialmgr.cxx
@@ -24,12 +24,10 @@
static ResMgr* pResMgr=0;
-// struct DialogsResMgr --------------------------------------------------
ResMgr* DialogsResMgr::GetResMgr()
{
- if ( !pResMgr )
- pResMgr = ResMgr::CreateResMgr( "svx", Application::GetSettings().GetUILanguageTag() );
-
+ if (!pResMgr)
+ pResMgr = ResMgr::CreateResMgr("svx", Application::GetSettings().GetUILanguageTag());
return pResMgr;
}