1. Fix a leak with g_base64 encode/decode use.
2. Remove unused generateBase64Key() call.