Browse Source

don't release reference count of dest_child

David Rose 22 years ago
parent
commit
eb4a25ba12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/char/character.cxx

+ 1 - 1
panda/src/char/character.cxx

@@ -308,7 +308,7 @@ r_copy_char(PandaNode *dest, const PandaNode *source,
     const PandaNode *source_child = source->get_child(i);
     const PandaNode *source_child = source->get_child(i);
     int source_sort = source->get_child_sort(i);
     int source_sort = source->get_child_sort(i);
 
 
-    PandaNode *dest_child;
+    PT(PandaNode) dest_child;
     if (source_child->is_of_type(Character::get_class_type())) {
     if (source_child->is_of_type(Character::get_class_type())) {
       // We make a special case for nodes of type Character.  If we
       // We make a special case for nodes of type Character.  If we
       // encounter one of these, we have a Character under a
       // encounter one of these, we have a Character under a