some compil warning fixes

Origin commit data
------------------
Commit: 8638cd73b7
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-04-22 (Fri, 22 Apr 2016)
This commit is contained in:
Jacek Jendrzej
2016-04-22 16:46:21 +02:00
parent 5ee708dd97
commit b06b3db436
6 changed files with 12 additions and 12 deletions

View File

@@ -682,9 +682,12 @@ int CLuaInstance::GCWindow(lua_State *L)
else if (videoDecoder->getBlank())
CLuaInstVideo::getInstance()->channelRezap(L);
delete w->fbwin;
w->rcinput = NULL;
delete w;
if(w){
if(w->fbwin)
delete w->fbwin;
w->rcinput = NULL;
delete w;
}
return 0;
}