[SCM] kodi-pvr-vdr-vnsi/master: VNSIAdmin: remove NULL check after "new"

tiber-guest at users.alioth.debian.org tiber-guest at users.alioth.debian.org
Sun Feb 28 15:46:50 UTC 2016


The following commit has been merged in the master branch:
commit 9245578fa2a8ebb65997c59facdf58f5beb8c55b
Author: Max Kellermann <max at duempel.org>
Date:   Sat Nov 7 23:37:11 2015 +0100

    VNSIAdmin: remove NULL check after "new"
    
    The "new" operator throws std::bad_alloc on allocation failure.  No
    need to check for NULL.

diff --git a/src/VNSIAdmin.cpp b/src/VNSIAdmin.cpp
index 81d9d7e..6e25e5c 100644
--- a/src/VNSIAdmin.cpp
+++ b/src/VNSIAdmin.cpp
@@ -396,9 +396,6 @@ bool cOSDRenderGL::Init()
 #if defined(HAVE_GLES2)
   vis_shader = new CVisGUIShader(vert, frag);
 
-  if(!vis_shader)
-    return false;
-
   if(!vis_shader->CompileAndLink())
   {
     delete vis_shader;

-- 
kodi-pvr-vdr-vnsi packaging



More information about the pkg-multimedia-commits mailing list