[vlmc-devel] ClipMetadataDisplayer: Fix memory leak
Hugo Beauzée-Luyssen
git at videolan.org
Mon Mar 28 18:03:53 CEST 2016
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Mar 28 17:45:27 2016 +0200| [500cdd27b5ab859bb3aef929bc1f807f23d7d79d] | committer: Hugo Beauzée-Luyssen
ClipMetadataDisplayer: Fix memory leak
> https://code.videolan.org/videolan/vlmc/commit/500cdd27b5ab859bb3aef929bc1f807f23d7d79d
---
src/Gui/media/ClipMetadataDisplayer.cpp | 5 +++++
src/Gui/media/ClipMetadataDisplayer.h | 1 +
2 files changed, 6 insertions(+)
diff --git a/src/Gui/media/ClipMetadataDisplayer.cpp b/src/Gui/media/ClipMetadataDisplayer.cpp
index 174f72b..54812b9 100644
--- a/src/Gui/media/ClipMetadataDisplayer.cpp
+++ b/src/Gui/media/ClipMetadataDisplayer.cpp
@@ -36,6 +36,11 @@ ClipMetadataDisplayer::ClipMetadataDisplayer( QWidget *parent /*= nullptr*/ ) :
m_ui->setupUi( this );
}
+ClipMetadataDisplayer::~ClipMetadataDisplayer()
+{
+ delete m_ui;
+}
+
void
ClipMetadataDisplayer::metadataUpdated()
{
diff --git a/src/Gui/media/ClipMetadataDisplayer.h b/src/Gui/media/ClipMetadataDisplayer.h
index 2b90066..4b1af3c 100644
--- a/src/Gui/media/ClipMetadataDisplayer.h
+++ b/src/Gui/media/ClipMetadataDisplayer.h
@@ -37,6 +37,7 @@ class ClipMetadataDisplayer : public QWidget
public:
explicit ClipMetadataDisplayer( QWidget *parent = 0 );
+ virtual ~ClipMetadataDisplayer();
void setWatchedClip( const Clip *clip );
void clear();
More information about the Vlmc-devel
mailing list