- some memory management fixes in localizationservice