projects
/
platform
/
core
/
appfw
/
manifest-parser.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b9c63b
)
Memory leak - WidgetInfo::preferences_
99/50799/1
author
Tomasz Iwanek
<t.iwanek@samsung.com>
Mon, 2 Nov 2015 09:42:58 +0000
(10:42 +0100)
committer
Tomasz Iwanek
<t.iwanek@samsung.com>
Mon, 2 Nov 2015 09:42:58 +0000
(10:42 +0100)
Change-Id: Ie7508e08f76956a1f141c41dea902982f6537a5b
src/manifest_handlers/widget_handler.h
patch
|
blob
|
history
diff --git
a/src/manifest_handlers/widget_handler.h
b/src/manifest_handlers/widget_handler.h
index a1184622e842dd4a5566c84d9d016b298ed42ecb..8f3ec91e02650a958dca2d6d9d01eb155d5f30b1 100644
(file)
--- a/
src/manifest_handlers/widget_handler.h
+++ b/
src/manifest_handlers/widget_handler.h
@@
-38,7
+38,12
@@
typedef std::map<std::string, std::string> LangValMap;
class WidgetInfo : public parser::ManifestData {
public:
WidgetInfo() {}
- virtual ~WidgetInfo() {}
+ WidgetInfo(const WidgetInfo&) = delete;
+ WidgetInfo& operator=(const WidgetInfo&) = delete;
+ virtual ~WidgetInfo() {
+ for (auto p : preferences_)
+ delete p;
+ }
const LangValMap& name_set() const { return name_set_; }
const LangValMap& short_name_set() const { return short_name_set_; }