Hello,

I've only seen crashes when trying to use kdenlive effects on Debian
unstable (qt 4.5.2). I have tried a number of fixes in the effects
processing but there always seems to be another source of crashes.

Here's one patch which I think does the correct thing, but doesn't
really bring any new stability into kdenlive effects lists or UI
elements.

This patch disconnects signals before killing the QWidgets.

Index: src/effectstackedit.cpp
===================================================================
--- src/effectstackedit.cpp     (revision 3744)
+++ src/effectstackedit.cpp     (working copy)
@@ -532,7 +532,11 @@
 
 void EffectStackEdit::clearAllItems()
 {
-    qDeleteAll(m_items);
+    while (!m_items.isEmpty()) {
+        QWidget * die = m_items.takeFirst();
+        die->disconnect();
+        delete die;
+    }
     qDeleteAll(m_uiItems);
     m_uiItems.clear();
     m_items.clear();

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Kdenlive-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kdenlive-devel

Reply via email to