From a005df7b375c4d4fe11c71ee5a574be05d657034 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 18 Dec 2017 16:26:38 +0100 Subject: [PATCH] Always destroy in reverse order For consistency and safety, always destroy objects in reverse order they were initialized. --- app/src/frames.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/frames.c b/app/src/frames.c index 7d240ca3..f9a01777 100644 --- a/app/src/frames.c +++ b/app/src/frames.c @@ -36,8 +36,8 @@ error_0: } void frames_destroy(struct frames *frames) { - SDL_DestroyMutex(frames->mutex); SDL_DestroyCond(frames->rendering_frame_consumed_cond); + SDL_DestroyMutex(frames->mutex); av_frame_free(&frames->rendering_frame); av_frame_free(&frames->decoding_frame); }