r18877 by jghali - #12112: Insert mark followed by undo trigger crash (caused by double free)

scribus-commit scribus-commit at lists.scribus.net
Thu Mar 6 06:13:04 UTC 2014


Author: jghali
Date: Thu Mar  6 06:13:03 2014
New Revision: 18877

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18877
Log:
#12112: Insert mark followed by undo trigger crash (caused by double free)

Modified:
    trunk/Scribus/scribus/text/storytext.cpp

Modified: trunk/Scribus/scribus/text/storytext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18877&path=/trunk/Scribus/scribus/text/storytext.cpp
==============================================================================
--- trunk/Scribus/scribus/text/storytext.cpp (original)
+++ trunk/Scribus/scribus/text/storytext.cpp Thu Mar  6 06:13:03 2014
@@ -416,11 +416,6 @@
 		if ((it->ch == SpecialChars::PARSEP)) {
 			removeParSep(i);
 		}
-        if (it->mark != NULL)
-        {
-            delete it->mark;
-            it->mark = NULL;
-        }
 
 //		qDebug("remove char %d at %d", (int) it->ch.unicode(), i);
 		d->takeAt(i);




More information about the scribus-commit mailing list