summaryrefslogtreecommitdiffstats
path: root/src/ui/view/view.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/view/view.cpp')
-rw-r--r--src/ui/view/view.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/view/view.cpp b/src/ui/view/view.cpp
index 4395357e0..3b2b7f229 100644
--- a/src/ui/view/view.cpp
+++ b/src/ui/view/view.cpp
@@ -84,7 +84,7 @@ void View::_close() {
_document_resized_connection.disconnect();
if (INKSCAPE.remove_document(_doc)) {
// this was the last view of this document, so delete it
- delete _doc;
+ // delete _doc; Delete now handled in Inkscape::Application
}
_doc = nullptr;
}
@@ -110,7 +110,7 @@ void View::setDocument(SPDocument *doc) {
_document_resized_connection.disconnect();
if (INKSCAPE.remove_document(_doc)) {
// this was the last view of this document, so delete it
- delete _doc;
+ // delete _doc; Delete now handled in Inkscape::Application
}
}