diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-03-31 21:40:52 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-03-31 21:40:52 -0400 |
commit | e6278559bdcee9626f9f593f40d7af8556419b19 (patch) | |
tree | cd1fd6187371f72536863a2058036306ee921e77 | |
parent | 29ca34d1bbaa4e16cfbc6aca5e3ed760ad54f6a4 (diff) | |
download | dimension-e6278559bdcee9626f9f593f40d7af8556419b19.tar.xz |
Plug memory leak.
-rw-r--r-- | dimension/common.rules | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dimension/common.rules b/dimension/common.rules index 3d6fd0a..d5e8994 100644 --- a/dimension/common.rules +++ b/dimension/common.rules @@ -153,8 +153,10 @@ OBJECT: FINITE_SOLID_OBJECT for (i = 0; i < dmnsn_array_size($4.children); ++i) { dmnsn_astnode astnode; dmnsn_array_get($4.children, i, &astnode); + ++*astnode.refcount; dmnsn_array_push(modifiers->children, &astnode); } + dmnsn_delete_astnode($4); break; } |