Page 1 of 1

Exception not destroyed

Posted: 2006-04-03T08:55:18-07:00
by mootools
Hello,

There is a memory leak in Magick++ (options.cpp)

void Magick::Options::magick ( const std::string &magick_ )
{
ExceptionInfo exception;

FormatString( _imageInfo->filename, "%.1024s:", magick_.c_str() );
GetExceptionInfo(&exception);
SetImageInfo( _imageInfo, MagickTrue, &exception);
if ( *_imageInfo->magick == '\0' )
throwExceptionExplicit( OptionWarning,
"Unrecognized image format",
magick_.c_str() );
DestroyExceptionInfo( &exception ); // This line must be added
}

Yours,