Fixed memory leaks and segfaults. Updated translations.