From 4f72ab022425318b109e52a641e63f673fce653d Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 18 Mar 2015 16:40:54 +0000 Subject: nail more lifecycle oddness. Change-Id: Ibc29b488cf5077f1d5eb996a8d88dfd057de8266 --- vcl/source/control/edit.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl/source/control') diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 63511fd855a4..4ab221fccc07 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2786,6 +2786,7 @@ Size Edit::GetMinimumEditSize() vcl::Window* pDefWin = ImplGetDefaultWindow(); VclPtr aEdit(new Edit( pDefWin, WB_BORDER ) ); Size aSize( aEdit->CalcMinimumSize() ); + aEdit.disposeAndClear(); return aSize; } -- cgit