1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

miracle-dispd: fix session leaking issue

Change-Id: I1ececf598fedf601edfd7c7208ffce72a750f8cd
This commit is contained in:
Derek Dai 2017-05-02 13:44:53 +08:00
parent 011f2e0b98
commit 4a39f08093
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -229,6 +229,8 @@ int wfd_session_destroy(struct wfd_session *s)
wfd_session_set_state(s, WFD_SESSION_STATE_DESTROYED);
wfd_fn_out_session_ended(s);
if(session_vtbl[s->dir].destroy) {
(*session_vtbl[s->dir].destroy)(s);
}
@ -285,8 +287,6 @@ int wfd_session_destroy(struct wfd_session *s)
s->rtp_ports[1] = 0;
s->last_request = RTSP_M_UNKNOWN;
wfd_fn_out_session_ended(s);
return 0;
}