Kaydet (Commit) 801422d7 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

Fix memleak

Change-Id: Ia4bdc254e4967613aedde35cd24ecc4ae6298ae5
üst c8dc5650
......@@ -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));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment