[vlmc-devel] commit: Clip: Destroy the media when deleting the base clip/root clip ( Hugo Beauzee-Luyssen )
git at videolan.org
git at videolan.org
Tue Mar 16 02:34:10 CET 2010
vlmc | branch: master | Hugo Beauzee-Luyssen <beauze.h at gmail.com> | Tue Mar 16 02:24:01 2010 +0100| [ad7af3321733dfbe1b8129a94f6691a731b4e38e] | committer: Hugo Beauzee-Luyssen
Clip: Destroy the media when deleting the base clip/root clip
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=ad7af3321733dfbe1b8129a94f6691a731b4e38e
---
src/Media/Clip.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/Media/Clip.cpp b/src/Media/Clip.cpp
index ab9c8ba..1266f7e 100644
--- a/src/Media/Clip.cpp
+++ b/src/Media/Clip.cpp
@@ -87,6 +87,8 @@ Clip::Clip( Clip *parent, qint64 begin /*= -1*/, qint64 end /*= -1*/,
Clip::~Clip()
{
delete m_childs;
+ if ( isRootClip() == true )
+ delete m_media;
}
qint64
More information about the Vlmc-devel
mailing list