BUG: sample: avoid double registration

This commit is contained in:
mattijs
2013-12-31 17:39:33 +00:00
parent 79312b05ea
commit 1b1392a592

View File

@ -132,6 +132,11 @@ int main(int argc, char *argv[])
)
);
// Note: both IOsampledSets and IOsampledSurfaces read the
// same dictionary. Unregister one to make sure no duplicates
// trying to register
sSetsPtr().checkOut();
sSurfsPtr.reset
(
new IOsampledSurfaces
@ -160,6 +165,8 @@ int main(int argc, char *argv[])
)
);
sSetsPtr().checkOut();
sSurfsPtr.reset
(
new IOsampledSurfaces