summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-09-21 22:25:37 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-09-21 22:25:37 +0000
commitdaac8d83b170c99e96572f6cf3915120d41233ca (patch)
treefbdc94dde2115ae30a080fb30c8d4e42b42aa646 /src/main.cpp
parenton closing and document change, if this was the last view on this document, d... (diff)
downloadinkscape-daac8d83b170c99e96572f6cf3915120d41233ca.tar.gz
inkscape-daac8d83b170c99e96572f6cf3915120d41233ca.zip
releasing fails to delete document, even when memory is scarce, so delete it explicitly
(bzr r6867)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f9c54aa2c..ebc7ddcdc 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -913,7 +913,8 @@ void sp_process_file_list(GSList *fl)
} else if (sp_query_x || sp_query_y) {
do_query_dimension (doc, false, sp_query_x? NR::X : NR::Y, sp_query_id);
}
- Inkscape::GC::release (doc);
+
+ delete doc;
}
fl = g_slist_remove(fl, fl->data);
}