projects
/
platform
/
core
/
context
/
context-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4501d2
)
Tuple::toGVariant() consumes its input param
51/113651/1
author
Mu-Woong Lee
<muwoong.lee@samsung.com>
Wed, 8 Feb 2017 08:42:39 +0000
(17:42 +0900)
committer
Mu-Woong Lee
<muwoong.lee@samsung.com>
Wed, 8 Feb 2017 08:42:39 +0000
(17:42 +0900)
Change-Id: I0cfdeb60ecc88087d88cddc497106bda773a3638
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/shared/Tuple.cpp
patch
|
blob
|
history
diff --git
a/src/shared/Tuple.cpp
b/src/shared/Tuple.cpp
index
af63c51
..
06f1b52
100644
(file)
--- a/
src/shared/Tuple.cpp
+++ b/
src/shared/Tuple.cpp
@@
-121,8
+121,11
@@
GVariant* Tuple::toGVariant(std::vector<Tuple*>& tuples)
for (auto& tuple : tuples) {
g_variant_builder_add_value(&builder, toGVariant(*tuple));
+ delete tuple;
}
+ tuples.clear();
+
return g_variant_builder_end(&builder);
}