From 2acf607ccc8e260a52e2119ee630343a00507132 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Sat, 6 Mar 2010 00:39:14 -0800 Subject: [PATCH] Prevent crash due to double delete. Fixes bug #316506. --- src/inkview.cpp | 3 --- 1 file changed, 3 deletions(-) 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; } -- 2.30.2