Commit 1cbb3f12 authored by Aymeric Moizard's avatar Aymeric Moizard
Browse files

fix memory issue in AudioQueue support

parent a4d247cb
......@@ -200,10 +200,15 @@ MSSndCardDesc aq_card_desc = {
static MSSndCard *aqcard_duplicate(MSSndCard * obj)
{
AqSndDsCard *ca;
AqSndDsCard *cadup;
MSSndCard *card = ms_snd_card_new(&aq_card_desc);
card->name = ms_strdup(obj->name);
card->data = ms_new0(AqSndDsCard, 1);
memcpy(card->data, obj->data, sizeof(AqSndDsCard));
ca = obj->data;
cadup = card->data;
cadup->uidname = CFStringCreateCopy(NULL, ca->uidname);
return card;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment