Fix #5105 Python crashes at exit win7 Python 2.7
Fix #5105 Python crashes at exit win7 Python 2.7

Using an unchecked pointer is bad

aldebaran/libqi,bsautron/libqi,vbarbaresi/libqi,aldebaran/libqi,aldebaran/libqi