]> git.mxchange.org Git - flightgear.git/commitdiff
Fix leak in interpolate(). Also give property nodes a name so they
authorandy <andy>
Tue, 22 Jan 2008 20:09:02 +0000 (20:09 +0000)
committerandy <andy>
Tue, 22 Jan 2008 20:09:02 +0000 (20:09 +0000)
look better in debug output

src/Scripting/NasalSys.cxx

index edc98a179c514bfc01c6aefd5835b745a641ee10..e312ac3d49d39ed43ab1f8609ec347d91ba4e66e 100644 (file)
@@ -328,6 +328,8 @@ static naRef f_interpolate(naContext c, naRef me, int argc, naRef* args)
         ->get_group(SGSubsystemMgr::INIT)->get_subsystem("interpolator"))
         ->interpolate(node, nPoints, values, deltas);
 
+    delete[] values;
+    delete[] deltas;
     return naNil();
 }