diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-31 17:08:29 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-31 17:12:54 +0100 |
commit | 5d208afe19d37bd246de2f47436a86669d612fc9 (patch) | |
tree | b1c4561bf3b97ab39625686ed7a684ed125b3493 | |
parent | aa7667b2987c96b514dbba141491ed3b948d4bd5 (diff) | |
download | advtime-5d208afe19d37bd246de2f47436a86669d612fc9.tar.gz advtime-5d208afe19d37bd246de2f47436a86669d612fc9.tar.bz2 advtime-5d208afe19d37bd246de2f47436a86669d612fc9.zip |
advtime: Check if frame_b can be freed
-rw-r--r-- | src/advtime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/advtime.c b/src/advtime.c index be0427e..b68b73a 100644 --- a/src/advtime.c +++ b/src/advtime.c @@ -197,7 +197,8 @@ main(int argc, char **argv) } video_decode_free_frame(&frame_a); - video_decode_free_frame(&frame_b); + if (frame_b) + video_decode_free_frame(&frame_b); video_decode_uninit(&vd); return EXIT_SUCCESS; } |