projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ed3e74
)
fixes memory leak in pinyin.cpp
author
Peng Wu
<alexepico@gmail.com>
Thu, 11 Oct 2012 09:29:42 +0000
(17:29 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Thu, 11 Oct 2012 09:29:42 +0000
(17:29 +0800)
src/pinyin.cpp
patch
|
blob
|
history
diff --git
a/src/pinyin.cpp
b/src/pinyin.cpp
index cdb756366b225a1b9b82967b69d08b1ca53b9ccb..28421617882b77a70bebc0f6820090238fc956a2 100644
(file)
--- 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. */