X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftrack.cpp;h=baf35195ff3dd454ebd693cfb53a8b1eb6ae4ed6;hb=e39a3bb041867d6b469bb26278ea0b05ebea0277;hp=ade3d132bcef669759bff1c6796e14699a9ce177;hpb=90790c9a28793d31b9ea38eea2f55652a0e9297b;p=r2c2.git diff --git a/source/3d/track.cpp b/source/3d/track.cpp index ade3d13..baf3519 100644 --- a/source/3d/track.cpp +++ b/source/3d/track.cpp @@ -36,6 +36,8 @@ Track3D::Track3D(Layout3D &l, Track &t): Track3D::~Track3D() { + delete path; + layout.remove_track(*this); layout.get_scene().remove(*this);