//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
bool GetPrivacyAppPackageListNCallback(const char *package_id, void* user_data)
{
- result r = E_SUCCESS;
ArrayList* pList = static_cast < ArrayList* >(user_data);
pList->Add(new String(package_id));
pAppId = _StringConverter::CopyToCharArrayN(packageId);
ret = privacy_manager_client_foreach_get_privacy_info(pAppId, GetPrivacyInfoListNCallback, (void *)pPrivacyIdList);
- delete pAppId;
+ delete[] pAppId;
return pPrivacyIdList;
}
isEnabled = privacyInfo.IsEnabled();
ret = privacy_manager_client_set_package_privacy(pPackageId, pPrivacyId, isEnabled);
+
+ delete[] pPackageId;
+ delete[] pPrivacyId;
return r;
}