//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
#include <FSec_AccessController.h>
#include "FApp_AppResourceImpl.h"
#include "FApp_AppInfo.h"
+#ifdef _SINGLETON_CLEANUP
+#include "FApp_LongevityManager.h"
+#endif
using namespace Tizen::Base;
using namespace Tizen::Graphics;
if (pSelfAppResource == null)
{
pSelfAppResource = _AppResourceImpl::GetInstanceN(APP_RESOURCE_DEFAULT);
+
+#ifdef _SINGLETON_CLEANUP
+ _LongevityManager::GetInstance().RegisterOwnership(*pSelfAppResource);
+#endif
}
// ClearLastResult(); // as this method does not register any exception.