diff --git a/src/main.c b/src/main.c index a62193f..6f6f193 100644 --- a/src/main.c +++ b/src/main.c @@ -206,7 +206,11 @@ chromatic_circular_shift(unsigned int clr, int n) } unsigned int* -horizontal_flip(unsigned int* buf, int size, int w) { +horizontal_flip(unsigned int* buf, int size, int w, int h) { + unsigned int* flip = malloc((w *h) * sizeof(unsigned int)); + + free(buf); + return flip; }