summaryrefslogtreecommitdiff
path: root/vcl/source/app/stdtext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/app/stdtext.cxx')
-rw-r--r--vcl/source/app/stdtext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/app/stdtext.cxx b/vcl/source/app/stdtext.cxx
index 8093a6fe6900..ca3ee6bbc566 100644
--- a/vcl/source/app/stdtext.cxx
+++ b/vcl/source/app/stdtext.cxx
@@ -39,8 +39,8 @@ void ShowServiceNotAvailableError(vcl::Window* pParent,
{
OUString aText = GetStandardText(STANDARD_TEXT_SERVICE_NOT_AVAILABLE).
replaceAll("%s", rServiceName);
- MessageDialog aBox(pParent, aText, bError ? VCL_MESSAGE_ERROR : VCL_MESSAGE_WARNING);
- aBox.Execute();
+ VclPtr<MessageDialog> aBox(new MessageDialog(pParent, aText, bError ? VCL_MESSAGE_ERROR : VCL_MESSAGE_WARNING));
+ aBox->Execute();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */