summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/source/debug/debug.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx
index bfbb8e6b4554..290e1a88a384 100644
--- a/tools/source/debug/debug.cxx
+++ b/tools/source/debug/debug.cxx
@@ -115,6 +115,9 @@ OString exceptionToString(const css::uno::Any & caught)
#endif
sMessage += " context: ";
sMessage += pContext;
+#if defined __GLIBCXX__
+ delete pContext;
+#endif
}
{
css::configuration::CorruptedConfigurationException specialized;