Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44ad8d90 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov
Browse files

Free av_open_on_rc_timer on cleanup

Bug: 27602473
Change-Id: I4b0f1563952be75a6dee238607e6674ce98ea623
parent dc02320a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1356,6 +1356,9 @@ static void cleanup(int service_uuid)

    btif_disable_service(service_uuid);

    alarm_free(av_open_on_rc_timer);
    av_open_on_rc_timer = NULL;

    /* Also shut down the AV state machine */
    btif_sm_shutdown(btif_av_cb.sm_handle);
    btif_av_cb.sm_handle = NULL;