From: buliabyak Date: Tue, 1 Apr 2008 17:30:06 +0000 (+0000) Subject: suppress warning when closing second document X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=40e40a37efaa1e71332d33d2c85cc017595d6285;p=inkscape.git suppress warning when closing second document --- diff --git a/src/document-subset.cpp b/src/document-subset.cpp index 5fcf1641c..04b3d9b06 100644 --- a/src/document-subset.cpp +++ b/src/document-subset.cpp @@ -140,7 +140,8 @@ struct DocumentSubset::Relations : public GC::Managed, for ( Map::iterator iter=records.begin() ; iter != records.end() ; ++iter ) { - sp_object_unref((*iter).first); + if ((*iter).first) + sp_object_unref((*iter).first); } }