Mercurial > MadButterfly
diff nodejs/coord.cc @ 1414:036f2b447860
Merge
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 06 Apr 2011 14:37:34 +0800 |
parents | 88c8c874f4b8 |
children | f34d2fcbcd0d |
line wrap: on
line diff
--- a/nodejs/coord.cc Wed Apr 06 11:14:15 2011 +0800 +++ b/nodejs/coord.cc Wed Apr 06 14:37:34 2011 +0800 @@ -81,6 +81,7 @@ FOR_COORDS_PREORDER(coord, child) { child_hdl = (Persistent<Object> *)mb_prop_get(&child->obj.props, PROP_JSOBJ); + if (child_hdl == NULL) continue; SET(*child_hdl, "valid", _false); WRAP(*child_hdl, NULL); child_hdl->Dispose(); @@ -90,6 +91,7 @@ FOR_COORD_SHAPES(child, mem) { mem_hdl = (Persistent<Object> *)mb_prop_get(&mem->obj.props, PROP_JSOBJ); + if (mem_hdl == NULL) continue; SET(*mem_hdl, "valid", _false); WRAP(*mem_hdl, NULL); mem_hdl->Dispose();