summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-31 21:40:52 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-31 21:40:52 -0400
commite6278559bdcee9626f9f593f40d7af8556419b19 (patch)
treecd1fd6187371f72536863a2058036306ee921e77 /dimension
parent29ca34d1bbaa4e16cfbc6aca5e3ed760ad54f6a4 (diff)
downloaddimension-e6278559bdcee9626f9f593f40d7af8556419b19.tar.xz
Plug memory leak.
Diffstat (limited to 'dimension')
-rw-r--r--dimension/common.rules2
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;
}