prevent crash when finalizing lightAttrib

This commit is contained in:
David Rose 2009-06-03 00:58:13 +00:00
parent ece078a5cd
commit 3cb7a6598c

View File

@ -333,6 +333,9 @@ resolve() {
new_refs.push_back(*oi); new_refs.push_back(*oi);
} }
_created_objs_by_pointer.erase(object_ptr); _created_objs_by_pointer.erase(object_ptr);
// We can't finalize the old pointer any more either.
_finalize_list.erase(object_ptr);
} }
created_obj._ptr = new_ptr; created_obj._ptr = new_ptr;
created_obj._change_this = NULL; created_obj._change_this = NULL;