[trunk] remove a usefulness test before a free
authorMickael Savinaud <savmickael@users.noreply.github.com>
Wed, 24 Oct 2012 13:05:30 +0000 (13:05 +0000)
committerMickael Savinaud <savmickael@users.noreply.github.com>
Wed, 24 Oct 2012 13:05:30 +0000 (13:05 +0000)
src/lib/openjp2/mqc.c

index d38395d491731c480201914e37256a93ab2c650c..7e554bbcc88093ff0baae4ab56cc273bd57df0d3 100644 (file)
@@ -364,9 +364,7 @@ opj_mqc_t* opj_mqc_create(void) {
 void opj_mqc_destroy(opj_mqc_t *mqc) {
        if(mqc) {
 #ifdef MQC_PERF_OPT
-               if (mqc->buffer) { /* TODO: LH: this test is pointless as free() is a no-op on 0 */
-                       opj_free(mqc->buffer);
-               }
+               opj_free(mqc->buffer);
 #endif
                opj_free(mqc);
        }