--- Quant.c	2009-03-13 09:42:27.203125000 +0600
+++ Quant.c.fixed	2009-02-05 22:00:15.984375000 +0600
@@ -652,9 +652,9 @@ median_cut(PixelList *hl[3],
       }
       ImagingQuantHeapAdd(h,(void *)(thisNode->l));
       ImagingQuantHeapAdd(h,(void *)(thisNode->r));
-   }
+   }   
+done:
    ImagingQuantHeapFree(h);
-done:   
    return root;
 }
 
