mirror of
https://github.com/FelixKratz/SketchyBar
synced 2025-02-16 20:48:26 +00:00
fix volume event memory leak
This commit is contained in:
parent
d8c9628cd2
commit
862951d39a
1 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,8 @@ static OSStatus handler(AudioObjectID id, uint32_t address_count, const AudioObj
|
|||
(void *) volume);
|
||||
|
||||
event_loop_post(&g_event_loop, event);
|
||||
} else {
|
||||
free(volume);
|
||||
}
|
||||
return KERN_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue