Destroy condition variable on frames destruction

A condition variable was init for the "struct frames", but was never destroyed.
This commit is contained in:
Romain Vimont 2017-12-15 11:12:02 +01:00
parent 1a71c4ab1d
commit 2b44052f80
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ error_0:
void frames_destroy(struct frames *frames) {
SDL_DestroyMutex(frames->mutex);
SDL_DestroyCond(frames->rendering_frame_consumed_cond);
av_frame_free(&frames->rendering_frame);
av_frame_free(&frames->decoding_frame);
}