don't leak memory
Switched locale path to standard /usr/share/locale
Merge pull request #3626 from monsta/fixes

Fix some leaks
2.4.0