aalib-1.4_rc5-free-offset-pointer.patch 404 B

123456789101112131415
  1. --- a/src/aarender.c
  2. +++ b/src/aarender.c
  3. @@ -63,10 +63,10 @@ void aa_renderpalette(aa_context * c, __
  4. errors[0] = calloc(1, (x2 + 5) * sizeof(int));
  5. if (errors[0] == NULL)
  6. dither = AA_ERRORDISTRIB;
  7. - errors[0] += 3;
  8. errors[1] = calloc(1, (x2 + 5) * sizeof(int));
  9. if (errors[1] == NULL)
  10. free(errors[0]), dither = AA_ERRORDISTRIB;
  11. + errors[0] += 3;
  12. errors[1] += 3;
  13. cur = 0;
  14. }