[vlmc-devel] commit: MediaContainer: Wait until event has been processed to delete the clip. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Thu Oct 7 15:03:01 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Oct 7 11:15:08 2010 +0200| [40c7f2a3a9aa2e630ed5a3ff383c8093974bf63a] | committer: Hugo Beauzée-Luyssen
MediaContainer: Wait until event has been processed to delete the clip.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=40c7f2a3a9aa2e630ed5a3ff383c8093974bf63a
---
src/Library/MediaContainer.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Library/MediaContainer.cpp b/src/Library/MediaContainer.cpp
index 717d591..c1ddd55 100644
--- a/src/Library/MediaContainer.cpp
+++ b/src/Library/MediaContainer.cpp
@@ -160,7 +160,7 @@ MediaContainer::deleteClip( const QUuid &uuid )
Clip* clip = it.value();
m_clips.remove( uuid );
emit clipRemoved( uuid );
- delete clip;
+ clip->deleteLater();
}
}
More information about the Vlmc-devel
mailing list