Code

the proper way to delete a SPDocument, according to mental
authorbuliabyak <buliabyak@users.sourceforge.net>
Tue, 16 Sep 2008 16:14:06 +0000 (16:14 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Tue, 16 Sep 2008 16:14:06 +0000 (16:14 +0000)
src/main.cpp

index f8c87b5a621a95277f04246f99fb1f58ddc79518..f9c54aa2cb9dcba0062f12a3c536507e208fa81b 100644 (file)
@@ -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);
     }
 }