projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
399831b
)
Fix incorrectly unique_ptr declared
author
sung-su.kim
<sung-su.kim@samsung.com>
Thu, 22 Oct 2015 00:38:27 +0000
(09:38 +0900)
committer
sung-su.kim
<sung-su.kim@samsung.com>
Thu, 22 Oct 2015 00:39:50 +0000
(09:39 +0900)
from unique_ptr<char> to unique_ptr<char[]>
common/resource_manager.cc
patch
|
blob
|
history
diff --git
a/common/resource_manager.cc
b/common/resource_manager.cc
index
86d7155
..
8040c7e
100644
(file)
--- a/
common/resource_manager.cc
+++ b/
common/resource_manager.cc
@@
-583,7
+583,7
@@
std::string ResourceManager::DecryptResource(const std::string& path) {
rewind(src);
// Read buffer from the source file
- std::unique_ptr<char> src_buf(new char[src_len]);
+ std::unique_ptr<char
[]
> src_buf(new char[src_len]);
if (src_len != fread(src_buf.get(), sizeof(char), src_len, src)) {
LOGGER(ERROR) << "Read error, file: " << src_path;
fclose(src);