//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
*/
#include <new>
+
#include <privacy_manager_client.h>
+
#include <FSecPrivacyManager.h>
#include <FBaseSysLog.h>
+#include <FBaseColArrayList.h>
+#include <FSecPrivacyInfo.h>
+
#include "FSec_PrivacyManagerImpl.h"
#include <FBase_StringConverter.h>
-#include <FSecPrivacyInfo.h>
using namespace Tizen::Base;
using namespace Tizen::Base::Collection;
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;
}