Fix "Called C++ object pointer is null" for EditableCatalog.cpp

Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
Fix memory leak for LocalePreflet.cpp

Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
PackageItem::ParseAttribute(), use delete[] for deleing *attrData.

Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>
BCollator::Archive(), use free() instead of delete

Signed-off-by: Oliver Tappe <zooey@hirschkaefer.de>