Skip to content
Browse files

free allocated memory

  • Loading branch information...
1 parent 227e4f9 commit 774555a32cde72e7a0bad32a460be784998e67d5 taggon committed Mar 9, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 gd_bindings.cc
View
6 gd_bindings.cc
@@ -598,6 +598,8 @@ class Gd
gdImagePolygon(*im, points, _len, color);
+ delete[] points;
+
return args.This();
}
@@ -634,6 +636,8 @@ class Gd
gdImageOpenPolygon(*im, points, _len, color);
+ delete[] points;
+
return args.This();
}
@@ -670,6 +674,8 @@ class Gd
gdImageFilledPolygon(*im, points, _len, color);
+ delete[] points;
+
return args.This();
}

0 comments on commit 774555a

Please sign in to comment.
Something went wrong with that request. Please try again.