Преглед изворни кода

fix refcount bug when reading bams

David Rose пре 24 година
родитељ
комит
54f300f612
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      panda/src/pgraph/pandaNode.cxx

+ 1 - 1
panda/src/pgraph/pandaNode.cxx

@@ -123,7 +123,7 @@ complete_pointers(TypedWritable **p_list, BamReader *manager) {
   // Get the parent pointers.
   Up::iterator ui;
   for (ui = _up.begin(); ui != _up.end(); ++ui) {
-    PT(PandaNode) parent_node = DCAST(PandaNode, p_list[pi++]);
+    PandaNode *parent_node = DCAST(PandaNode, p_list[pi++]);
 
     // For some reason, VC++ won't accept UpConnection as an inline
     // temporary constructor here ("C2226: unexpected type