Skip to content
Snippets Groups Projects
Commit 1b1392a5 authored by mattijs's avatar mattijs
Browse files

BUG: sample: avoid double registration

parent 79312b05
Branches
Tags
No related merge requests found
...@@ -132,6 +132,11 @@ int main(int argc, char *argv[]) ...@@ -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 sSurfsPtr.reset
( (
new IOsampledSurfaces new IOsampledSurfaces
...@@ -160,6 +165,8 @@ int main(int argc, char *argv[]) ...@@ -160,6 +165,8 @@ int main(int argc, char *argv[])
) )
); );
sSetsPtr().checkOut();
sSurfsPtr.reset sSurfsPtr.reset
( (
new IOsampledSurfaces new IOsampledSurfaces
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment