--- gimp-texturize-2.0.orig/src/graphcut.cpp
+++ gimp-texturize-2.0/src/graphcut.cpp
@@ -97,7 +97,7 @@
   gint x_inf, y_inf, x_sup, y_sup;
   int chute_patch_posn[2];
   Graph * graphe = new Graph(); // Le graphe à couper
-  Graph::node_id node_of_pixel[width_p * height_p]; // Le noeud du graph auquel correspond un pointeur.
+  Graph::node_id *node_of_pixel = (void **) calloc (width_p * height_p, sizeof (Graph::node_id)); // Le noeud du graph auquel correspond un pointeur.
   for (k=0; k<width_p * height_p; k++) node_of_pixel[k] = NULL;
 
   Graph::captype poids; // Pour calculer le poids d'un arc avant de le déclarer à Graph:add_edge
@@ -319,6 +319,7 @@
 //On nettoie tout
 
   delete graphe;
+  free (node_of_pixel);
 
   return;
 }
