diff options
author | Chris Gilbert <chris@dokein.co.uk> | 2014-05-05 10:04:58 +0100 |
---|---|---|
committer | Chris Gilbert <chris@dokein.co.uk> | 2014-05-05 11:42:01 +0100 |
commit | b48326805c1f72b39a2ff2bc801306e8ac1e349c (patch) | |
tree | 212af1581875c72b01d0f048ba201076660c9ec4 | |
parent | 61eec86e3be3852d86b7cb7c829a6ad9ce9cfdbb (diff) |
Remove null test
It doesn't add anything, and the semi-colon meant it wasn't doing the
expected thing anyway.
Fix Coverity CID 1211801
-rw-r--r-- | xbmc/windowing/WinEventsX11.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xbmc/windowing/WinEventsX11.cpp b/xbmc/windowing/WinEventsX11.cpp index 3586a6a79e..6603dcafed 100644 --- a/xbmc/windowing/WinEventsX11.cpp +++ b/xbmc/windowing/WinEventsX11.cpp @@ -177,11 +177,8 @@ CWinEventsX11Imp::CWinEventsX11Imp() CWinEventsX11Imp::~CWinEventsX11Imp() { - if (m_keybuf); - { - free(m_keybuf); - m_keybuf = 0; - } + free(m_keybuf); + m_keybuf = 0; if (m_xic) { |