res_ari_events: Fix shutdown ref leak.

ASTERISK-25308 #close
Reported by: Joshua Colp

Change-Id: I592785bf70ff4b63d00e535b482f40da8e82a082
This commit is contained in:
Richard Mudgett
2015-08-18 15:07:49 -05:00
parent e1e7e205bc
commit 03eb6cbc10
4 changed files with 31 additions and 7 deletions

View File

@@ -462,6 +462,7 @@ static int unload_module(void)
ast_ari_remove_handler(&events);
ao2_cleanup(events.ws_server);
events.ws_server = NULL;
ast_ari_websocket_events_event_websocket_dtor();
stasis_app_unref();
return 0;
}