Fixed crash on 10.7.
Fixed crash on 10.7.

saulogt/HexFiend,pandazheng/HexFiend,thx0701/HexFiend,kedh/HexFiend,kedh/HexFiend,thx0701/HexFiend,pandazheng/HexFiend,saulogt/HexFiend,pandazheng/HexFiend,kedh/HexFiend,saulogt/HexFiend,thx0701/HexFiend,pandazheng/HexFiend,kedh/HexFiend,thx0701/HexFiend,saulogt/HexFiend