Code

Prevent crash due to double delete. Fixes bug #316506.
authorJon A. Cruz <jon@joncruz.org>
Sat, 6 Mar 2010 08:39:14 +0000 (00:39 -0800)
committerJon A. Cruz <jon@joncruz.org>
Sat, 6 Mar 2010 08:39:14 +0000 (00:39 -0800)
src/inkview.cpp

index 5cfde2c814a793d1365d32549300ff58394f4902..007438b49dab13b91e08027f29a9f90aa2e36a12 100644 (file)
@@ -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<SPSVGView*>(SP_VIEW_WIDGET_VIEW (ss->view))->setDocument (doc);
-        if (ss->doc) {
-            delete ss->doc;
-        }
         ss->doc = doc;
         ss->current = current;
     }