[vlmc-devel] Fix segmentation fault occured by deleting the same object twice
Yikai Lu
git at videolan.org
Sun Mar 6 00:12:40 CET 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Mar 6 01:16:02 2016 +0900| [ea8248685661e105fa6c0fc8a770263b3c4c7714] | committer: Hugo Beauzée-Luyssen
Fix segmentation fault occured by deleting the same object twice
There is
Core::~Core()
{
...
delete m_workflowRenderer;
...
}
So there is no need to delete the same object in the preview widget.
> https://code.videolan.org/videolan/vlmc/commit/ea8248685661e105fa6c0fc8a770263b3c4c7714
---
src/Gui/preview/PreviewWidget.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/Gui/preview/PreviewWidget.cpp b/src/Gui/preview/PreviewWidget.cpp
index 1102c92..5547e53 100644
--- a/src/Gui/preview/PreviewWidget.cpp
+++ b/src/Gui/preview/PreviewWidget.cpp
@@ -59,7 +59,6 @@ PreviewWidget::PreviewWidget( QWidget *parent )
PreviewWidget::~PreviewWidget()
{
- delete m_renderer;
delete m_ui;
}
More information about the Vlmc-devel
mailing list