Skip to content

Commit

Permalink
Fix #810, Wrong image freed, src_cloned should be freed if set. (#811)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrejoye committed Jan 29, 2022
1 parent 03aa193 commit 3a9d9a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gd_interpolation.c
Expand Up @@ -1857,7 +1857,7 @@ BGD_DECLARE(gdImagePtr) gdImageRotateInterpolated(const gdImagePtr src, const fl

case -18000:
case 18000:
if (src_cloned) gdImageDestroy(src);
if (src_cloned) gdImageDestroy(src_tc);
return gdImageRotate180(src, 0);

case -9000:
Expand Down

0 comments on commit 3a9d9a8

Please sign in to comment.