plugged memory leaks

This commit is contained in:
Massimo Valentini
2012-02-07 14:06:12 +01:00
parent 73a3b56ec9
commit 39368a410d
27 changed files with 74 additions and 24 deletions

View File

@ -337,7 +337,7 @@ gimp_canvas_polygon_new_from_coords (GimpDisplayShell *shell,
}
array = gimp_array_new ((const guint8 *) points,
n_coords * sizeof (GimpVector2), FALSE);
n_coords * sizeof (GimpVector2), TRUE);
item = g_object_new (GIMP_TYPE_CANVAS_POLYGON,
"shell", shell,
@ -346,6 +346,7 @@ gimp_canvas_polygon_new_from_coords (GimpDisplayShell *shell,
NULL);
gimp_array_free (array);
g_free (points);
return item;
}