summaryrefslogtreecommitdiffstats
path: root/gettextfromc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gettextfromc.cpp')
-rw-r--r--gettextfromc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gettextfromc.cpp b/gettextfromc.cpp
index 4976d70f8..fe6263a4b 100644
--- a/gettextfromc.cpp
+++ b/gettextfromc.cpp
@@ -4,7 +4,7 @@
char *gettextFromC::gettext(const char *text)
{
- return tr(text).toLocal8Bit().data();
+ return strdup(tr(text).toLocal8Bit().data());
}
gettextFromC* gettextFromC::instance()