From: Jean-Baptiste M. <jb...@kd...> - 2013-07-04 15:43:08
|
Git commit 6af0aceb17d9237472e3128b13a21fe532aeb664 by Jean-Baptiste Mardelle. Committed on 04/07/2013 at 15:42. Pushed by mardelle into branch 'master'. Fix crash on undo add effect M +0 -1 src/core/effectsystem/commands/addeffectcommand.cpp M +1 -1 src/core/effectsystem/effect.cpp http://commits.kde.org/kdenlive/6af0aceb17d9237472e3128b13a21fe532aeb664 diff --git a/src/core/effectsystem/commands/addeffectcommand.cpp b/src/core/effectsystem/commands/addeffectcommand.cpp index c954e63..8de80e7 100644 --- a/src/core/effectsystem/commands/addeffectcommand.cpp +++ b/src/core/effectsystem/commands/addeffectcommand.cpp @@ -56,7 +56,6 @@ void AddEffectCommand::addEffect() void AddEffectCommand::deleteEffect() { if (m_effect) { - // TODO: sometimes crashes, check why delete m_effect; m_effect = NULL; m_device->requestUpdateClip(); diff --git a/src/core/effectsystem/effect.cpp b/src/core/effectsystem/effect.cpp index 141a6f2..5154c6c 100644 --- a/src/core/effectsystem/effect.cpp +++ b/src/core/effectsystem/effect.cpp @@ -56,7 +56,7 @@ Effect::~Effect() m_viewHandler->setParent(NULL); checkPropertiesViewState(); m_parent->removeFilter(m_filter); - delete m_filter; + m_filter = NULL; } void Effect::setParameterValue(const QString &name, const QString &value) |