chan_ooh323: call ast_rtp_instance_stop on ooh323_destroy

Call ast_rtp_instance_stop on ooh323_destroy to free resources
    allocated by rtp instance

    ASTERISK-25299 #close
    Report by: Alexandr Dranchuk

Change-Id: I455096bd7da016b871afe90af86067c2c7c9f33f
This commit is contained in:
Alexander Anikin
2015-09-07 22:19:41 +04:00
parent a79527ca64
commit d2106c0b21

View File

@@ -4115,6 +4115,7 @@ int ooh323_destroy(struct ooh323_pvt *p)
}
if (cur->rtp) {
ast_rtp_instance_stop(cur->rtp);
ast_rtp_instance_destroy(cur->rtp);
cur->rtp = NULL;
}