Commit 42f31d88 authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

MediaContainer: Really delete the contained clip when destroying the mediacontainer

parent ad7af332
......@@ -35,6 +35,13 @@ MediaContainer::MediaContainer( Clip* parent /*= NULL*/ ) : m_parent( parent )
{
}
MediaContainer::~MediaContainer()
{
foreach ( Clip* c, m_clips.values() )
delete c;
m_clips.clear();
}
Clip*
MediaContainer::clip( const QUuid& uuid )
{
......
......@@ -39,6 +39,7 @@ class MediaContainer : public QObject
public:
MediaContainer( Clip* parent = NULL );
~MediaContainer();
/**
* \brief returns the clip that match the unique identifier
* \param uuid the unique identifier of the media
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment