mirror of
https://github.com/NickHu/sway
synced 2024-11-16 19:49:56 +01:00
swaygrab: Fix memory leak when recording videos
This commit is contained in:
parent
23df7ed502
commit
7b00eab8ad
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue