[SCM] kodi-pvr-vdr-vnsi/master: VNSIAdmin: reset vis_shader (and others) to NULL after delete
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 69a32ef743bb50088dfa37ce3721a99993e72e87
Author: Max Kellermann <max at duempel.org>
Date: Sat Nov 7 23:36:39 2015 +0100
VNSIAdmin: reset vis_shader (and others) to NULL after delete
diff --git a/src/VNSIAdmin.cpp b/src/VNSIAdmin.cpp
index 5bd1c40..81d9d7e 100644
--- a/src/VNSIAdmin.cpp
+++ b/src/VNSIAdmin.cpp
@@ -402,6 +402,7 @@ bool cOSDRenderGL::Init()
if(!vis_shader->CompileAndLink())
{
delete vis_shader;
+ vis_shader = NULL;
return false;
}
#endif
@@ -837,6 +838,7 @@ bool cVNSIAdmin::Open(const std::string& hostname, int port, const char* name)
if(!m_osdRender->Init())
{
delete m_osdRender;
+ m_osdRender = NULL;
return false;
}
--
kodi-pvr-vdr-vnsi packaging
More information about the pkg-multimedia-commits
mailing list