On 05/04/2015 7:27 pm, Baz Walter wrote:
On 04/04/15 18:56, Baz Walter wrote:
On 04/04/15 09:23, Phil Thompson wrote:
The current QScintilla snapshot is a release candidate for v2.9.
Please
test.
Hello Phil
I'm currently getting segfaults whenever I close a QScintilla widget
in
a program that otherwise works fine with the current stable releases.
I don't have a simple test case at the moment, but after opening a
blank
editor and then immediately closing it, I get the backtrace below.
This is on Linux (gcc 4.9.2) using all the latest snapshots with the
Python bindings (Python3/Qt5):
Hi Phil
Here's a simple test case that segfaults every time for me after I
click the "Test" button:
Should be fixed in tonight's snapshot - or use the attached patch.
Thanks,
Phil
diff -r c91009909b8e qt/qsciscintillabase.cpp
--- a/qt/qsciscintillabase.cpp Sun Apr 05 12:35:06 2015 +0100
+++ b/qt/qsciscintillabase.cpp Mon Apr 06 10:20:20 2015 +0100
@@ -125,6 +125,9 @@
// The dtor.
QsciScintillaBase::~QsciScintillaBase()
{
+ // The QsciScintillaQt object isn't a child so delete it explicitly.
+ delete sci;
+
// Remove it from the pool.
poolList.removeAt(poolList.indexOf(this));
}
_______________________________________________
QScintilla mailing list
[email protected]
http://www.riverbankcomputing.com/mailman/listinfo/qscintilla