Set m_inputBuff to NULL after free in CJpegIO.cpp::Close()

m_inputBuff is passed to realloc() in CJpegIO::Open() after calling
free() in CJpegIO::Close(). This can allow realloc() to reference
memory after it has been freed.
Fix possible NULL pointer dereference in GUIKeyboardFactory.cpp
Added missing '!' to NULL check in GUIDialogCache.cpp
Remove uncondiational assignment of dwDelay to 0 in CGUIDialogCache constructor

It looks like this assignment was not intentional as it prevents
m_endtime from getting set.
Fix memory leak in UPnPPlayer.cpp

m_delegate is allocated in the constructor, but never freed.
Fix 0 height check in CXImage::Decode()

m_image.width was checked against 0.  This condition probably intended to check m_image.height against 0 as well.
Use delete[] on storage allocated with new[] in NfoFile.cpp
Fix possible out-of-bounds read in dll_opendir()

Check the bonds of iDirSlot before using it as an array index.
Fix possible socket leaks on error in CVTPSession::GetStreamLive()
Make sure all members of trackinfo struct are initialized

trackinfo contains two fields that are not initialized in
CCdIoSupport::GetCdInfo().
Remove unused assignment in TuxBoxUtil.cpp
Fix possible 32-bit int overflow in CAddonInstaller::PrunePackageCache()

Cast to a 64-bit integer before multiplying to avoid possible overflow.
Fix missing brackets around else case in CNetworkInterfaceLinux::GetAccessPoints()
Adjust indenting in CreateFile() to make control flow clear.
Fix possible uninitialized read in fastatof()
Pass levels to fribidi_log2vis()

In logicalToVisualBiDi() in CharsetConverter.cpp the pointer levels
is uninitialized but read from.  It looks like it was intended for
this pointer to passed to fribidi_log2vis() to be populated.
Make sure ifr_name buffer is always NULL-terminated in NetworkLinux.cpp
Fix possible NULL pointer dereferences in CGUIWindowPVR::SetActiveView()
Fix possible NULL pointer dereference in CMusicDatabase::ImportKaraokeInfo()
Merge pull request #2365 from kylhill/master

Fix Coverity Static Analysis Warnings in XBMC