summaryrefslogtreecommitdiff
path: root/svtools/source/control/urlcontrol.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/control/urlcontrol.cxx')
-rw-r--r--svtools/source/control/urlcontrol.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/control/urlcontrol.cxx b/svtools/source/control/urlcontrol.cxx
index 8a268d75e4c8..00864126fe0c 100644
--- a/svtools/source/control/urlcontrol.cxx
+++ b/svtools/source/control/urlcontrol.cxx
@@ -36,9 +36,9 @@ namespace svt
(void)rMap;
WinBits nWinBits = WB_LEFT|WB_VCENTER|WB_3DLOOK|WB_TABSTOP|
WB_DROPDOWN|WB_AUTOSIZE|WB_AUTOHSCROLL;
- OFileURLControl* pListBox = new OFileURLControl(pParent, nWinBits);
+ VclPtrInstance<OFileURLControl> pListBox(pParent, nWinBits);
pListBox->EnableAutoSize(true);
- return pListBox;
+ rRet = pListBox;
}
bool OFileURLControl::PreNotify( NotifyEvent& _rNEvt )