Fix the memory leak in the video decoder

This commit is contained in:
Cameron Gutman
2014-10-20 12:55:23 -04:00
parent f909371a90
commit f14a2a66dd
2 changed files with 74 additions and 32 deletions

View File

@@ -65,9 +65,8 @@ void DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit)
entry = entry->next;
}
// This function will take our buffer
[renderer submitDecodeBuffer:data length:decodeUnit->fullLength];
free(data);
}
}