]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
chan_ooh323: call ast_rtp_instance_stop on ooh323_destroy 09/1209/1
authorAlexander Anikin <may213@yandex.ru>
Mon, 7 Sep 2015 18:19:41 +0000 (22:19 +0400)
committerAlexander Anikin <may213@yandex.ru>
Mon, 7 Sep 2015 18:39:20 +0000 (22:39 +0400)
    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

addons/chan_ooh323.c

index 90cb9098bfbd99e1c656f0159adcaa8c21a746f3..4297abd94f567a6f896f270aec7bff2d276b746d 100644 (file)
@@ -4080,6 +4080,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;
                }