COV: Fixing coverity issue 1267297 (Wrapper object used after free)
COV: Fixing coverity issue 1267297 (Wrapper object used after free)

orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB