summaryrefslogtreecommitdiffstats
path: root/src/document-subset.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2008-04-01 17:30:06 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2008-04-01 17:30:06 +0000
commitecd1427633915b6b75c42f3a80b4d5297892f331 (patch)
tree285f7caf134a56b963eccbd1f6c4a6476dc388d0 /src/document-subset.cpp
parentmove helper path to the bottom so it doesnt get in the way with editing nodes (diff)
downloadinkscape-ecd1427633915b6b75c42f3a80b4d5297892f331.tar.gz
inkscape-ecd1427633915b6b75c42f3a80b4d5297892f331.zip
suppress warning when closing second document
(bzr r5293)
Diffstat (limited to 'src/document-subset.cpp')
-rw-r--r--src/document-subset.cpp3
1 files changed, 2 insertions, 1 deletions
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<GC::ATOMIC>,
for ( Map::iterator iter=records.begin()
; iter != records.end() ; ++iter )
{
- sp_object_unref((*iter).first);
+ if ((*iter).first)
+ sp_object_unref((*iter).first);
}
}