diff --git a/funcs/falsecolors.c b/funcs/falsecolors.c index 663dd98..c77e2dc 100644 --- a/funcs/falsecolors.c +++ b/funcs/falsecolors.c @@ -21,11 +21,11 @@ int fimg_falsecolors_0(FloatImg *src, FloatImg *dst, int k, float valf) { int x, y; -fprintf(stderr, ">>> %s ( %p %p %d %f )\n", __func__, +fprintf(stderr, ">>> %s ( %p %p %d %f )\n", __func__, src, dst, k, valf); -for (y=0; yheight, y++) { - for (x=0; xwidth, x++) { +for (y=0; yheight; y++) { + for (x=0; xwidth; x++) { /***********************/ /* DO SOMETHING HERE ! */ diff --git a/funcs/tests.c b/funcs/tests.c index 3d48468..4d84c81 100644 --- a/funcs/tests.c +++ b/funcs/tests.c @@ -36,6 +36,9 @@ foo = fimg_clear(&dst); foo = fimg_falsecolors_0(&src, &dst, type, 3.141592654); foo= fimg_export_picture(&dst, dstfile, 0); + +fimg_destroy(&src); fimg_destroy(&dst); + return -1; } /* --------------------------------------------------------------------- */