fixed bug on CkConditional using erroneous destructor
authorFilippo Gioachin <gioachin@illinois.edu>
Fri, 8 May 2009 21:38:26 +0000 (21:38 +0000)
committerFilippo Gioachin <gioachin@illinois.edu>
Fri, 8 May 2009 21:38:26 +0000 (21:38 +0000)
src/xlat-i/xi-symbol.C

index a82daf8daecc7eca82180d60b0525cc6ffb52fed..53128c214f026cd8bfdc3610fac8a4d1de8de8ce 100644 (file)
@@ -1787,7 +1787,7 @@ Message::genDefs(XStr& str)
         if (mv->isConditional()) {
           if (mv->type->isPointer()) die("conditional variable cannot be a pointer", line);
           str << "  CkConditional *cond_" << mv->name << " = static_cast<CkConditional*>(msg->" << mv->name << ");\n";
-          str << "  if (cond_" << mv->name << "!=NULL) delete cond_" << mv->name << ";\n";
+          str << "  if (cond_" << mv->name << "!=NULL) cond_" << mv->name << "->deallocate();\n";
         }
       }
     }