summaryrefslogtreecommitdiffstats
path: root/gettextfromc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gettextfromc.cpp')
-rw-r--r--gettextfromc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gettextfromc.cpp b/gettextfromc.cpp
index fc11847fa..ba8158c87 100644
--- a/gettextfromc.cpp
+++ b/gettextfromc.cpp
@@ -17,8 +17,8 @@ void gettextFromC::reset(void)
gettextFromC* gettextFromC::instance()
{
- static gettextFromC *self = new gettextFromC();
- return self;
+ static QScopedPointer<gettextFromC> self(new gettextFromC());
+ return self.data();
}
extern "C" const char *trGettext(const char *text)