diff options
-rw-r--r-- | swaygrab/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/swaygrab/main.c b/swaygrab/main.c index 1120f0d5..d64d2ff2 100644 --- a/swaygrab/main.c +++ b/swaygrab/main.c @@ -94,6 +94,7 @@ void grab_and_apply_movie_magic(const char *file, const char *output, fwrite(pixels, 1, len, f); + free(pixels - 9); clock_gettime(CLOCK_MONOTONIC, &finish); ts.tv_nsec = ns; double fts = (double)finish.tv_sec + 1.0e-9*finish.tv_nsec; |