[x265] [PATCH 1 of 3] motion: remove NULL checks prior to X265_FREE calls

Steve Borho steve at borho.org
Sat Oct 5 00:02:01 CEST 2013


# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1380920475 18000
#      Fri Oct 04 16:01:15 2013 -0500
# Node ID cb6b3038a1e67b5697e748614485a027a18b4c12
# Parent  4ee217cd64cc18a1f62fb8ef75c46240c123d1d9
motion: remove NULL checks prior to X265_FREE calls

diff -r 4ee217cd64cc -r cb6b3038a1e6 source/encoder/motion.cpp
--- a/source/encoder/motion.cpp	Fri Oct 04 15:30:31 2013 -0500
+++ b/source/encoder/motion.cpp	Fri Oct 04 16:01:15 2013 -0500
@@ -93,12 +93,9 @@
 
 MotionEstimate::~MotionEstimate()
 {
-    if (fenc)
-        X265_FREE(fenc);
-    if (subpelbuf)
-        X265_FREE(subpelbuf);
-    if (immedVal)
-        X265_FREE(immedVal);
+    X265_FREE(fenc);
+    X265_FREE(subpelbuf);
+    X265_FREE(immedVal);
 }
 
 void MotionEstimate::setSourcePU(int offset, int width, int height)


More information about the x265-devel mailing list