Exception not destroyed

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mootools
Posts: 19
Joined: 2005-06-30T06:08:40-07:00
Location: France

Exception not destroyed

Post by mootools » 2006-04-03T08:55:18-07:00

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,
Manuel Jouglet
Mootools

Post Reply