summaryrefslogtreecommitdiff
path: root/src/Installer/DirectoryInstaller.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/Installer/DirectoryInstaller.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/Installer/DirectoryInstaller.cpp')
-rwxr-xr-x[-rw-r--r--]src/Installer/DirectoryInstaller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Installer/DirectoryInstaller.cpp b/src/Installer/DirectoryInstaller.cpp
index d58b668..6c3b347 100644..100755
--- a/src/Installer/DirectoryInstaller.cpp
+++ b/src/Installer/DirectoryInstaller.cpp
@@ -149,7 +149,7 @@ DirectoryInstaller::RemoveInfoFiles(void)
path = pPackageInfoImpl->GetAppRootPath() + DIR_INFO;
- 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);
@@ -185,7 +185,7 @@ DirectoryInstaller::RemoveInfoFiles(void)
return true;
CATCH:
- delete pDirEnum;
+ // delete pDirEnum;
delete pDir;
return false;
}