diff options
author | Teddy Wing | 2018-10-06 01:34:15 +0200 |
---|---|---|
committer | Teddy Wing | 2018-10-06 01:34:15 +0200 |
commit | 4bffdb76ad090f0252f1d4f5ebf27f0ce159cf82 (patch) | |
tree | 89f6dcb25e9f1a18f5ebaf38bca006a48c997386 | |
parent | d9c6b524579716353fb80a2508eeccf47bd40e90 (diff) | |
download | DomeKey-4bffdb76ad090f0252f1d4f5ebf27f0ce159cf82.tar.bz2 |
HeadphoneKey: Free `_state` when deallocating
-rw-r--r-- | DomeKey/HeadphoneKey.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/DomeKey/HeadphoneKey.m b/DomeKey/HeadphoneKey.m index 1556427..ef90560 100644 --- a/DomeKey/HeadphoneKey.m +++ b/DomeKey/HeadphoneKey.m @@ -30,6 +30,11 @@ return self; } +- (void)dealloc +{ + state_free(_state); +} + - (void)ddhidAppleMikey:(DDHidAppleMikey *)mikey press:(unsigned)usageId upOrDown:(BOOL)upOrDown |