summaryrefslogtreecommitdiff
path: root/src/Manager/InstallerManager.cpp
diff options
context:
space:
mode:
authorDongeup Ham <dongeup.ham@samsung.com>2012-12-27 13:58:15 +0900
committerDongeup Ham <dongeup.ham@samsung.com>2012-12-27 13:58:15 +0900
commiteb04667e6caaf20a7016ec9122ba9b54a2ed7b2d (patch)
tree669bbb9a4fad38b1252dc8da3caa6d08df0f1589 /src/Manager/InstallerManager.cpp
parent7111af69a59fcfebeef7248b96f76c6e8f0a1eac (diff)
downloadinstaller-eb04667e6caaf20a7016ec9122ba9b54a2ed7b2d.tar.gz
installer-eb04667e6caaf20a7016ec9122ba9b54a2ed7b2d.tar.bz2
installer-eb04667e6caaf20a7016ec9122ba9b54a2ed7b2d.zip
Prevent issues are fixed.
Change-Id: I2fb8620fa55a66b3cfca69bc42837bf305bdb1f3 Signed-off-by: Dongeup Ham <dongeup.ham@samsung.com>
Diffstat (limited to 'src/Manager/InstallerManager.cpp')
-rwxr-xr-x[-rw-r--r--]src/Manager/InstallerManager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Manager/InstallerManager.cpp b/src/Manager/InstallerManager.cpp
index 723fbac..368a505 100644..100755
--- a/src/Manager/InstallerManager.cpp
+++ b/src/Manager/InstallerManager.cpp
@@ -163,37 +163,37 @@ InstallerManager::CreateInstaller(InstallerType installerType)
{
case INSTALLER_TYPE_INSTALLER:
AppLogTag(OSP_INSTALLER, "InstallerType = [Installer]");
- pInstaller = new Installer();
+ pInstaller = new (std::nothrow) Installer();
break;
case INSTALLER_TYPE_PACKAGE:
AppLogTag(OSP_INSTALLER, "InstallerType = [PackageInstaller]");
- pInstaller = new PackageInstaller();
+ pInstaller = new (std::nothrow) PackageInstaller();
break;
case INSTALLER_TYPE_DIRECTORY:
AppLogTag(OSP_INSTALLER, "InstallerType = [DirectoryInstaller]");
- pInstaller = new DirectoryInstaller();
+ pInstaller = new (std::nothrow) DirectoryInstaller();
break;
case INSTALLER_TYPE_GUEST:
AppLogTag(OSP_INSTALLER, "InstallerType = [GuestInstaller]");
- pInstaller = new GuestInstaller();
+ pInstaller = new (std::nothrow) GuestInstaller();
break;
case INSTALLER_TYPE_PRELOADED:
AppLogTag(OSP_INSTALLER, "InstallerType = [PreloadedInstaller]");
- pInstaller = new PreloadedInstaller();
+ pInstaller = new (std::nothrow) PreloadedInstaller();
break;
case INSTALLER_TYPE_IDE:
AppLogTag(OSP_INSTALLER, "InstallerType = [IDEInstaller]");
- pInstaller = new IDEInstaller();
+ pInstaller = new (std::nothrow) IDEInstaller();
break;
case INSTALLER_TYPE_RESTORATION:
AppLogTag(OSP_INSTALLER, "InstallerType = [RestorationInstaller]");
- pInstaller = new RestorationInstaller();
+ pInstaller = new (std::nothrow) RestorationInstaller();
break;
default:
@@ -373,7 +373,7 @@ InstallerManager::RequestRecursiveDirectory(const Tizen::Base::String& path, int
int successCount = 0;
int failureCount = 0;
- pDir = new Directory; // Allocate %Directory instance
+ pDir = new (std::nothrow) Directory; // Allocate %Directory instance
TryCatch(pDir, res = false, "[osp-installer] pDir is null");
r = pDir->Construct(path);