From: Peng Wu Date: Thu, 11 Oct 2012 09:29:42 +0000 (+0800) Subject: fixes memory leak in pinyin.cpp X-Git-Tag: 0.7.92~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3a847651431bb9f1edd01a2606ff37d2286c055;p=platform%2Fupstream%2Flibpinyin.git fixes memory leak in pinyin.cpp --- diff --git a/src/pinyin.cpp b/src/pinyin.cpp index cdb7563..2842161 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -534,6 +534,8 @@ void pinyin_fini(pinyin_context_t * context){ g_free(context->m_system_dir); g_free(context->m_user_dir); context->m_modified = false; + + delete context; } /* copy from options to context->m_options. */