From 1fce41eff254b6cd0dcc8f1f280066248373066f Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sat, 4 Jun 2011 16:08:52 +0200 Subject: Add autoGamma, autoLevel, bilevel, blackThreshold, blend, blueShift, blur and border. --- dmagick/Exception.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dmagick/Exception.d') 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); } } } -- cgit v1.2.3