Fix Windows memory freeing: add a check for fb == NULL; fixes trac #4506 Also added a few comments, and a load of code got indented 1 level deeper.
Fix Windows memory freeing: add a check for fb == NULL; fixes trac #4506
Also added a few comments, and a load of code got indented 1 level deeper.

lukexi/ghc-7.8-arm64,gridaphobe/ghc,oldmanmike/ghc,forked-upstream-packages-for-ghcjs/ghc,fmthoma/ghc,wxwxwwxxx/ghc,elieux/ghc,mfine/ghc,acowley/ghc,ilyasergey/GHC-XAppFix,sgillespie/ghc,shlevy/ghc,holzensp/ghc,bitemyapp/ghc,ezyang/ghc,tibbe/ghc,da-x/ghc,gridaphobe/ghc,nomeata/ghc,elieux/ghc,ekmett/ghc,ml9951/ghc,gridaphobe/ghc,elieux/ghc,snoyberg/ghc,nushio3/ghc,ekmett/ghc,nomeata/ghc,sdiehl/ghc,vikraman/ghc,snoyberg/ghc,holzensp/ghc,mettekou/ghc,ezyang/ghc,shlevy/ghc,ml9951/ghc,ghc-android/ghc,spacekitteh/smcghc,acowley/ghc,mcschroeder/ghc,gridaphobe/ghc,ryantm/ghc,fmthoma/ghc,elieux/ghc,frantisekfarka/ghc-dsi,tibbe/ghc,tjakway/ghcjvm,holzensp/ghc,lukexi/ghc-7.8-arm64,hferreiro/replay,nushio3/ghc,AlexanderPankiv/ghc,ghc-android/ghc,olsner/ghc,frantisekfarka/ghc-dsi,GaloisInc/halvm-ghc,snoyberg/ghc,nushio3/ghc,mettekou/ghc,sgillespie/ghc,ryantm/ghc,tjakway/ghcjvm,tjakway/ghcjvm,olsner/ghc,nathyong/microghc-ghc,anton-dessiatov/ghc,mcschroeder/ghc,oldmanmike/ghc,urbanslug/ghc,ryantm/ghc,mfine/ghc,siddhanathan/ghc,tjakway/ghcjvm,ml9951/ghc,nushio3/ghc,anton-dessiatov/ghc,sdiehl/ghc,sgillespie/ghc,acowley/ghc,green-haskell/ghc,oldmanmike/ghc,TomMD/ghc,snoyberg/ghc,acowley/ghc,ezyang/ghc,mcschroeder/ghc,hferreiro/replay,nathyong/microghc-ghc,AlexanderPankiv/ghc,nathyong/microghc-ghc,acowley/ghc,snoyberg/ghc,vikraman/ghc,nomeata/ghc,frantisekfarka/ghc-dsi,siddhanathan/ghc,frantisekfarka/ghc-dsi,AlexanderPankiv/ghc,mfine/ghc,sdiehl/ghc,mcmaniac/ghc,wxwxwwxxx/ghc,TomMD/ghc,fmthoma/ghc,jstolarek/ghc,GaloisInc/halvm-ghc,nathyong/microghc-ghc,da-x/ghc,nathyong/microghc-ghc,mfine/ghc,TomMD/ghc,urbanslug/ghc,oldmanmike/ghc,nomeata/ghc,da-x/ghc,jstolarek/ghc,da-x/ghc,elieux/ghc,GaloisInc/halvm-ghc,nathyong/microghc-ghc,ekmett/ghc,forked-upstream-packages-for-ghcjs/ghc,oldmanmike/ghc,ml9951/ghc,frantisekfarka/ghc-dsi,vTurbine/ghc,ghc-android/ghc,holzensp/ghc,lukexi/ghc,anton-dessiatov/ghc,ezyang/ghc,forked-upstream-packages-for-ghcjs/ghc,tibbe/ghc,forked-upstream-packages-for-ghcjs/ghc,shlevy/ghc,christiaanb/ghc,acowley/ghc,vTurbine/ghc,anton-dessiatov/ghc,mcschroeder/ghc,sgillespie/ghc,hferreiro/replay,urbanslug/ghc,tibbe/ghc,lukexi/ghc-7.8-arm64,jstolarek/ghc,tjakway/ghcjvm,forked-upstream-packages-for-ghcjs/ghc,shlevy/ghc,tibbe/ghc,mfine/ghc,christiaanb/ghc,ryantm/ghc,ml9951/ghc,vikraman/ghc,nkaretnikov/ghc,christiaanb/ghc,christiaanb/ghc,forked-upstream-packages-for-ghcjs/ghc,lukexi/ghc,ghc-android/ghc,elieux/ghc,lukexi/ghc-7.8-arm64,sdiehl/ghc,ghc-android/ghc,vTurbine/ghc,GaloisInc/halvm-ghc,nathyong/microghc-ghc,nushio3/ghc,AlexanderPankiv/ghc,nkaretnikov/ghc,olsner/ghc,christiaanb/ghc,mcmaniac/ghc,siddhanathan/ghc,vikraman/ghc,ml9951/ghc,mettekou/ghc,olsner/ghc,ezyang/ghc,AlexanderPankiv/ghc,tjakway/ghcjvm,vikraman/ghc,gcampax/ghc,gcampax/ghc,fmthoma/ghc,green-haskell/ghc,acowley/ghc,TomMD/ghc,lukexi/ghc,mcschroeder/ghc,shlevy/ghc,sgillespie/ghc,shlevy/ghc,mfine/ghc,da-x/ghc,urbanslug/ghc,mfine/ghc,mcschroeder/ghc,sdiehl/ghc,ilyasergey/GHC-XAppFix,ekmett/ghc,sgillespie/ghc,spacekitteh/smcghc,green-haskell/ghc,gcampax/ghc,sdiehl/ghc,mettekou/ghc,wxwxwwxxx/ghc,fmthoma/ghc,wxwxwwxxx/ghc,spacekitteh/smcghc,lukexi/ghc,mcmaniac/ghc,jstolarek/ghc,mcmaniac/ghc,forked-upstream-packages-for-ghcjs/ghc,vTurbine/ghc,mcmaniac/ghc,bitemyapp/ghc,TomMD/ghc,gridaphobe/ghc,tjakway/ghcjvm,nkaretnikov/ghc,ryantm/ghc,da-x/ghc,olsner/ghc,gridaphobe/ghc,olsner/ghc,elieux/ghc,ilyasergey/GHC-XAppFix,oldmanmike/ghc,oldmanmike/ghc,ghc-android/ghc,siddhanathan/ghc,jstolarek/ghc,green-haskell/ghc,lukexi/ghc-7.8-arm64,lukexi/ghc,ezyang/ghc,GaloisInc/halvm-ghc,mettekou/ghc,green-haskell/ghc,TomMD/ghc,anton-dessiatov/ghc,sgillespie/ghc,christiaanb/ghc,vTurbine/ghc,olsner/ghc,GaloisInc/halvm-ghc,ekmett/ghc,wxwxwwxxx/ghc,spacekitteh/smcghc,nushio3/ghc,bitemyapp/ghc,vTurbine/ghc,nushio3/ghc,GaloisInc/halvm-ghc,vTurbine/ghc,wxwxwwxxx/ghc,mettekou/ghc,siddhanathan/ghc,gcampax/ghc,gcampax/ghc,ilyasergey/GHC-XAppFix,sdiehl/ghc,nkaretnikov/ghc,da-x/ghc,urbanslug/ghc,shlevy/ghc,anton-dessiatov/ghc,hferreiro/replay,urbanslug/ghc,christiaanb/ghc,gcampax/ghc,bitemyapp/ghc,ml9951/ghc,nkaretnikov/ghc,hferreiro/replay,nkaretnikov/ghc,holzensp/ghc,siddhanathan/ghc,fmthoma/ghc,vikraman/ghc,siddhanathan/ghc,AlexanderPankiv/ghc,snoyberg/ghc,bitemyapp/ghc,gridaphobe/ghc,ghc-android/ghc,gcampax/ghc,mettekou/ghc,TomMD/ghc,ezyang/ghc,wxwxwwxxx/ghc,fmthoma/ghc,hferreiro/replay,nomeata/ghc,vikraman/ghc,nkaretnikov/ghc,anton-dessiatov/ghc,ml9951/ghc,spacekitteh/smcghc,AlexanderPankiv/ghc,urbanslug/ghc,snoyberg/ghc,mcschroeder/ghc,hferreiro/replay