1
0
Fork 0
mirror of https://github.com/swaywm/sway.git synced 2025-03-26 16:22:04 +00:00

Merge pull request from juju2143/bug-correction-1

swaygrab: Fix memory leak when recording videos
This commit is contained in:
Drew DeVault 2015-12-23 07:53:08 -05:00
commit f438d3897d

View file

@ -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;