diff options
Diffstat (limited to 'dmagick/Exception.d')
| -rw-r--r-- | dmagick/Exception.d | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dmagick/Exception.d b/dmagick/Exception.d index 55532f0..5add259 100644 --- a/dmagick/Exception.d +++ b/dmagick/Exception.d @@ -55,6 +55,8 @@ class DMagickException : Exception string reason = to!(string)(exception.reason); string description = to!(string)(exception.description); + scope(exit) exception = DestroyExceptionInfo(exception); + mixin( { string exceptions = @@ -181,7 +183,6 @@ struct DMagickExceptionInfo if ( *refcount == 0 ) { DMagickException.throwException(exceptionInfo); - exceptionInfo = DestroyExceptionInfo(exceptionInfo); } } } |
