From fb6e0e88bb97cd0e4f01231e4b1979d573a4eef9 Mon Sep 17 00:00:00 2001 From: krcroft Date: Thu, 16 Jan 2020 14:46:22 -0800 Subject: [PATCH] Fix NULL issues in zmbv.cpp There is no sense in testing the pointers against null, as the memory was allocated using the 'new' operator, which throws an exception. --- src/libs/zmbv/zmbv.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libs/zmbv/zmbv.cpp b/src/libs/zmbv/zmbv.cpp index e00d62ad..8941dcb5 100644 --- a/src/libs/zmbv/zmbv.cpp +++ b/src/libs/zmbv/zmbv.cpp @@ -97,10 +97,6 @@ bool VideoCodec::SetupBuffers(zmbv_format_t _format, int blockwidth, int blockhe blockcount=yblocks*xblocks; blocks=new FrameBlock[blockcount]; - if (!buf1 || !buf2 || !work || !blocks) { - FreeBuffers(); - return false; - } int y,x,i; i=0; for (y=0;y