From: Jon A. Cruz Date: Sat, 6 Mar 2010 08:39:14 +0000 (-0800) Subject: Prevent crash due to double delete. Fixes bug #316506. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2acf607ccc8e260a52e2119ee630343a00507132;p=inkscape.git Prevent crash due to double delete. Fixes bug #316506. --- diff --git a/src/inkview.cpp b/src/inkview.cpp index 5cfde2c81..007438b49 100644 --- a/src/inkview.cpp +++ b/src/inkview.cpp @@ -446,9 +446,6 @@ sp_svgview_set_document(struct SPSlideShow *ss, SPDocument *doc, int current) if (doc && doc != ss->doc) { sp_document_ensure_up_to_date (doc); reinterpret_cast(SP_VIEW_WIDGET_VIEW (ss->view))->setDocument (doc); - if (ss->doc) { - delete ss->doc; - } ss->doc = doc; ss->current = current; }