From 25a33049c7e422374a08e58cdc70ff93da0332f2 Mon Sep 17 00:00:00 2001 From: bulia byak Date: Tue, 16 Sep 2008 16:14:06 +0000 Subject: the proper way to delete a SPDocument, according to mental (bzr r6817) --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index f8c87b5a6..f9c54aa2c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -913,8 +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; /// \todo: Check the proper way to delete a SPDocument. fl = g_slist_remove(fl, fl->data); } } -- cgit v1.2.3