Merge "Add readlink failure case of timezone" into tizen_2.2
[platform/framework/native/appfw.git] / src / io / FIo_SecureRegistry.cpp
index 321dc86..a9f7e47 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -84,7 +83,7 @@ _SecureRegistry::_SecureRegistry(void)
 
 _SecureRegistry::~_SecureRegistry(void)
 {
-       if (_write == true && _FileImpl::IsFileExist(_regPath) == true)
+       if (_write == true && _FileImpl::IsFileExist(_regPath) == true && _update == true)
        {
                this->Flush();
        }