diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2017-02-20 22:31:28 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2017-02-21 01:43:14 +0200 |
commit | 801422d70133986af45385307a10566af0bc56ee (patch) | |
tree | 2cd775ec7f763d16c4397211a332a2bc30398c7f | |
parent | c8dc5650836bd837b5839e2654ec185eb243ff3a (diff) |
Fix memleak
Change-Id: Ia4bdc254e4967613aedde35cd24ecc4ae6298ae5
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 3540ab11dc65..989da8fd451d 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -2211,13 +2211,7 @@ NotebookbarTabControl::NotebookbarTabControl(vcl::Window* pParent) , bLastContextWasSupported(true) , eLastContext(vcl::EnumContext::Context::Any) { - LanguageTag aLocale( Application::GetSettings().GetUILanguageTag()); - ResMgr* pResMgr = ResMgr::SearchCreateResMgr( "vcl", aLocale ); - - Bitmap aBitmap; - if( pResMgr ) - aBitmap = Bitmap( ResId( SV_RESID_BITMAP_NOTEBOOKBAR, *pResMgr ) ); - + Bitmap aBitmap(VclResId(SV_RESID_BITMAP_NOTEBOOKBAR)); InsertPage(1, ""); SetPageImage(1, Image(aBitmap)); } |