[PATCH 5/5] track.cpp: delete audioTrackProducer

Mikko Rapeli mikko.rapeli at iki.fi
Wed Jan 11 07:31:01 UTC 2017


Fixes cppcheck error:

[src/timeline/track.cpp:439]: (error) Memory leak: audioTrackProducer

Signed-off-by: Mikko Rapeli <mikko.rapeli at iki.fi>
---
 src/timeline/track.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/timeline/track.cpp b/src/timeline/track.cpp
index 1c8cbdf..4c65641 100644
--- a/src/timeline/track.cpp
+++ b/src/timeline/track.cpp
@@ -435,6 +435,7 @@ QList<ItemInfo> Track::replaceAll(const QString &id, Mlt::Producer *original, Ml
     }
     delete trackProducer;
     delete info;
+    delete audioTrackProducer;
     return replaced;
 }
 
-- 
2.10.2



More information about the kdenlive mailing list