mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-30 08:35:02 +01:00
Fix swaygrab memory leak
This commit is contained in:
parent
f05b6cd55c
commit
04bd9386fe
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ void grab_and_apply_magick(const char *file, const char *output, int socketfd) {
|
|||
fwrite(pixels, 1, len, f);
|
||||
fflush(f);
|
||||
fclose(f);
|
||||
free(pixels);
|
||||
free(cmd);
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
|
|
Loading…
Add table
Reference in a new issue