diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/debug/debug.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx index 290e1a88a384..fdfd7259d3cf 100644 --- a/tools/source/debug/debug.cxx +++ b/tools/source/debug/debug.cxx @@ -50,6 +50,7 @@ #include <sal/log.hxx> #include <osl/thread.h> +#include <cstdlib> #include <typeinfo> #include <tools/diagnose_ex.h> @@ -116,7 +117,7 @@ OString exceptionToString(const css::uno::Any & caught) sMessage += " context: "; sMessage += pContext; #if defined __GLIBCXX__ - delete pContext; + std::free(const_cast<char *>(pContext)); #endif } { |