[Coverity] Fix some null checks

This commit is contained in:
baldurk
2016-09-14 18:28:53 +02:00
parent e88722f000
commit 6521a6b782
2 changed files with 3 additions and 2 deletions
-2
View File
@@ -55,8 +55,6 @@ namespace renderdocui.Code
var me = (TimedUpdate)state;
if (me == null) return;
if (me.m_Update != null) me.m_Update();
if (me.m_CameraTick != null) me.m_CameraTick.Change(me.m_Rate, System.Threading.Timeout.Infinite);
}
+3
View File
@@ -1233,6 +1233,9 @@ namespace renderdoc
CustomMarshal.Free(mem);
}
if (msg == null)
return;
if (msg.Type == TargetControlMessageType.Disconnected)
{
m_Connected = false;