Skip to content
This repository has been archived by the owner on Mar 31, 2018. It is now read-only.

Commit

Permalink
free allocated memory
Browse files Browse the repository at this point in the history
  • Loading branch information
taggon committed Mar 9, 2010
1 parent 227e4f9 commit 774555a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gd_bindings.cc
Expand Up @@ -598,6 +598,8 @@ class Gd


gdImagePolygon(*im, points, _len, color); gdImagePolygon(*im, points, _len, color);


delete[] points;

return args.This(); return args.This();
} }


Expand Down Expand Up @@ -634,6 +636,8 @@ class Gd


gdImageOpenPolygon(*im, points, _len, color); gdImageOpenPolygon(*im, points, _len, color);


delete[] points;

return args.This(); return args.This();
} }


Expand Down Expand Up @@ -670,6 +674,8 @@ class Gd


gdImageFilledPolygon(*im, points, _len, color); gdImageFilledPolygon(*im, points, _len, color);


delete[] points;

return args.This(); return args.This();
} }


Expand Down

0 comments on commit 774555a

Please sign in to comment.