[Chinese-commits] [fqterm] 55/76: Add UAOcodec again

Boyuan Yang hosiet-guest at moszumanska.debian.org
Thu Oct 27 03:17:01 UTC 2016


This is an automated email from the git hooks/post-receive script.

hosiet-guest pushed a commit to branch master
in repository fqterm.

commit 816199a63a58d3613203636ad3b1240c11ae835c
Author: Iru Dog <mytbk920423 at gmail.com>
Date:   Wed Oct 15 23:24:24 2014 +0800

    Add UAOcodec again
    
    The previous bug is a result of deleting uaocodec_, for more info,
    check out for:
    http://qt-project.org/doc/qt-5/qtextcodec.html#dtor.QTextCodec
    
    thanks to valgrind
---
 src/fqterm/fqterm_frame.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/fqterm/fqterm_frame.cpp b/src/fqterm/fqterm_frame.cpp
index 47aa433..e5c863e 100644
--- a/src/fqterm/fqterm_frame.cpp
+++ b/src/fqterm/fqterm_frame.cpp
@@ -207,7 +207,9 @@ FQTermFrame::~FQTermFrame() {
   delete imageViewer_;
   delete shortcutHelper_;
   delete config_;
-  delete uaoCodec_;
+  // should not delete yourself!!
+  // http://qt-project.org/doc/qt-5/qtextcodec.html#dtor.QTextCodec
+  //  delete uaoCodec_;
   delete windowManager_;
   FQTermIPLocation::Destroy();
   serverThread_->quit();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/chinese/fqterm.git



More information about the Chinese-commits mailing list