projects
/
platform
/
core
/
security
/
pubkey-pinning.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14c0f30
)
Fix memory leak on using vconf_get_str()
41/135841/1
accepted/tizen/4.0/unified/20170816.010344
accepted/tizen/4.0/unified/20170816.014142
accepted/tizen/4.0/unified/20170829.015823
accepted/tizen/unified/20170629.013811
submit/tizen/20170627.080412
submit/tizen_4.0/20170811.094300
submit/tizen_4.0/20170814.115522
submit/tizen_4.0/20170828.100004
submit/tizen_4.0/20170828.110004
submit/tizen_4.0_unified/20170814.115522
author
sangwan.kwon
<sangwan.kwon@samsung.com>
Tue, 27 Jun 2017 04:27:40 +0000
(13:27 +0900)
committer
sangwan.kwon
<sangwan.kwon@samsung.com>
Tue, 27 Jun 2017 04:28:00 +0000
(13:28 +0900)
Change-Id: Ia27a6efcf12c99a37883d706bb227c3e5375e110
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
src/common/ui/popup-bin/popup.cpp
patch
|
blob
|
history
diff --git
a/src/common/ui/popup-bin/popup.cpp
b/src/common/ui/popup-bin/popup.cpp
index
13c4640
..
9187fe6
100644
(file)
--- a/
src/common/ui/popup-bin/popup.cpp
+++ b/
src/common/ui/popup-bin/popup.cpp
@@
-317,7
+317,8
@@
int main(int argc, char **argv)
/* init/shutdown elm automatically */
ElmRaii elmRaii(argc, argv);
- setlocale(LC_ALL, vconf_get_str(VCONFKEY_LANGSET));
+ auto langSetPtr = CstringPtr(vconf_get_str(VCONFKEY_LANGSET), ::free);
+ setlocale(LC_ALL, (langSetPtr != nullptr) ? langSetPtr.get() : "");
try {
std::unique_ptr<Csr::Mainloop> loop(new Csr::EcoreMainloop);