[x265] Remove unnecessary check in destructors

Steve Borho steve at borho.org
Wed Sep 18 19:20:52 CEST 2013


On Wed, Sep 18, 2013 at 8:07 AM, SF Markus Elfring <
elfring at users.sourceforge.net> wrote:

> Hello,
>
> The null pointer check for the pointer "buf" is not needed in destructors
> for
> classes like "Y4MOutput" and "YUVOutput".
> http://dietmar-kuehl.de/mirror/c++-faq/freestore-mgmt.html#faq-16.8
>
>
> https://bitbucket.org/multicoreware/x265/src/1d710404b8bb/source/output/y4m.cpp#cl-44
>
> https://bitbucket.org/multicoreware/x265/src/1d710404b8bb/source/output/yuv.cpp#cl-40


Thanks, patches on the way

-- 
Steve Borho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20130918/6f72cb47/attachment.html>


More information about the x265-devel mailing list