wrap dialog subclass in ScopedVclPtrInstance
Change-Id: I79b982ffa121cc38c467f79bd56d498abd4f8cac
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index 16edfe7..53b1ee2 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -836,12 +836,10 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, TSAURLsPBHdl)
// Unlike the mpCertPathDlg, we *don't* keep the same dialog object around between
// invocations. Seems clearer to my little brain that way.
TSAURLsDialog* pTSAURLsDlg = new TSAURLsDialog(this);
ScopedVclPtrInstance<TSAURLsDialog> pTSAURLsDlg(this);
pTSAURLsDlg->Execute();
delete pTSAURLsDlg;
return 0;
}