some compil warning fixes

This commit is contained in:
Jacek Jendrzej
2016-04-22 16:46:21 +02:00
parent f78fc97fe3
commit 8638cd73b7
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;
}