bridge_softmix.c: Fix memory leak.
[asterisk/asterisk.git] / bridges / bridge_softmix.c
index 46b27f1..e04e1fa 100644 (file)
@@ -2218,6 +2218,8 @@ static void softmix_bridge_stream_topology_changed(struct ast_bridge *bridge, st
                ast_channel_unlock(participant->chan);
                ast_bridge_channel_unlock(participant);
        }
                ast_channel_unlock(participant->chan);
                ast_bridge_channel_unlock(participant);
        }
+
+       AST_VECTOR_FREE(&media_types);
 }
 
 static struct ast_bridge_technology softmix_bridge = {
 }
 
 static struct ast_bridge_technology softmix_bridge = {