Skip to content

Commit

Permalink
Fix memory leak in Magick::Draw for recentry ImageMagick 6 by remov…
Browse files Browse the repository at this point in the history
…ing unnecessary `GetDrawInfo()` calling (#1406)
  • Loading branch information
Watson1978 committed Jul 16, 2023
1 parent e7d5148 commit fec7a7e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ext/RMagick/rmdraw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1420,8 +1420,6 @@ DrawOptions_initialize(VALUE self)
rb_raise(rb_eNoMemError, "not enough memory to continue");
}

GetDrawInfo(NULL, draw_options->info);

if (rb_block_given_p())
{
rb_yield(self);
Expand Down

0 comments on commit fec7a7e

Please sign in to comment.