2018-01-10 14:41:56 +00:00
|
|
|
#define TRACE_MODULE _rx_message
|
|
|
|
|
|
|
|
#include "core_debug.h"
|
|
|
|
#include "core_pkbuf.h"
|
|
|
|
|
|
|
|
#include "rx_message.h"
|
|
|
|
|
|
|
|
void rx_message_free(rx_message_t *rx_message)
|
|
|
|
{
|
2018-01-17 03:41:57 +00:00
|
|
|
int i, j, k;
|
2018-01-10 14:41:56 +00:00
|
|
|
|
|
|
|
d_assert(rx_message, return, "Null param");
|
|
|
|
|
|
|
|
for (i = 0; i < rx_message->num_of_media_component; i++)
|
|
|
|
{
|
|
|
|
rx_media_component_t *media_component =
|
|
|
|
&rx_message->media_component[i];
|
|
|
|
|
2018-01-17 03:41:57 +00:00
|
|
|
for (j = 0; j < media_component->num_of_sub; j++)
|
2018-01-10 14:41:56 +00:00
|
|
|
{
|
2018-01-17 03:41:57 +00:00
|
|
|
rx_media_sub_component_t *sub = &media_component->sub[j];
|
2018-01-10 14:41:56 +00:00
|
|
|
|
2018-01-17 03:41:57 +00:00
|
|
|
for (k = 0; k < sub->num_of_flow; k++)
|
2018-01-13 13:03:30 +00:00
|
|
|
{
|
2018-01-17 03:41:57 +00:00
|
|
|
flow_t *flow = &sub->flow[k];
|
|
|
|
|
|
|
|
if (flow->description)
|
|
|
|
{
|
|
|
|
CORE_FREE(flow->description);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
d_assert(0,, "Null param");
|
2018-01-13 13:03:30 +00:00
|
|
|
}
|
2018-01-10 14:41:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|