prevent memory leaks if you use getLangs multiple times