From 40e40a37efaa1e71332d33d2c85cc017595d6285 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Tue, 1 Apr 2008 17:30:06 +0000 Subject: [PATCH] suppress warning when closing second document --- src/document-subset.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.30.2