mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-17 04:34:44 -07:00
Fix some memory management bugs in apps
This commit is contained in:
6
applications/external/wiiec/wii_anal.c
vendored
6
applications/external/wiiec/wii_anal.c
vendored
@@ -488,13 +488,13 @@ int32_t wii_ec_anal(void) {
|
||||
|
||||
bail:
|
||||
// 10. Release system notification queue
|
||||
if(state->notify) {
|
||||
if(state && state->notify) {
|
||||
furi_record_close(RECORD_NOTIFICATION);
|
||||
state->notify = NULL;
|
||||
}
|
||||
|
||||
// 9. Stop the timer
|
||||
if(state->timer) {
|
||||
if(state && state->timer) {
|
||||
(void)furi_timer_stop(state->timer);
|
||||
furi_timer_free(state->timer);
|
||||
state->timer = NULL;
|
||||
@@ -515,7 +515,7 @@ bail:
|
||||
}
|
||||
|
||||
// 5. Free the mutex
|
||||
if(state->mutex) {
|
||||
if(state && state->mutex) {
|
||||
furi_mutex_free(state->mutex);
|
||||
state->mutex = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user