From 61b224f392eb856bf4cfa0c04c68202a463cbdbf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 20 Mar 2015 11:27:10 +0200 Subject: vclwidget: fixup locally allocated vcl::Window objects They need to be wrapped in ScopedVclPtr in order to be disposed properly. Change-Id: Ib64dba353774f54711e4de7f5d15d859c6a4dc7e --- uui/source/nameclashdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uui/source/nameclashdlg.cxx') diff --git a/uui/source/nameclashdlg.cxx b/uui/source/nameclashdlg.cxx index 032e6e7f2ecd..8e11603b278d 100644 --- a/uui/source/nameclashdlg.cxx +++ b/uui/source/nameclashdlg.cxx @@ -34,7 +34,7 @@ IMPL_LINK( NameClashDialog, ButtonHdl_Impl, PushButton *, pBtn ) OUString aNewName = m_pEDNewName->GetText(); if ( ( aNewName == maNewName ) || aNewName.isEmpty() ) { - VclPtr aError(new MessageDialog(NULL, maSameName)); + ScopedVclPtr aError(new MessageDialog(NULL, maSameName)); aError->Execute(); return 1; } -- cgit v1.2.3