projects
/
platform
/
core
/
uifw
/
aurum.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6d5f37
)
AccessibleWatcher: resolve possible memory leak
author
Jongmin Lee
<jm105.lee@samsung.com>
Tue, 9 Jun 2020 05:58:18 +0000
(14:58 +0900)
committer
Jongmin Lee
<jm105.lee@samsung.com>
Thu, 11 Jun 2020 22:02:32 +0000
(07:02 +0900)
Change-Id: I9b3d063003e01a62364dbc712a9fcd42b084272f
libaurum/src/AccessibleWatcher.cc
patch
|
blob
|
history
diff --git
a/libaurum/src/AccessibleWatcher.cc
b/libaurum/src/AccessibleWatcher.cc
index
47507ca
..
8a00fe2
100644
(file)
--- a/
libaurum/src/AccessibleWatcher.cc
+++ b/
libaurum/src/AccessibleWatcher.cc
@@
-41,7
+41,10
@@
findActiveNode(AtspiAccessible *node, int depth,
if (iShowingNode(node)) {
g_object_ref(node);
char *name = atspi_accessible_get_name(node, NULL);
- LOG_SCOPE_F(INFO, "%s", name);
+ if (name) {
+ LOG_SCOPE_F(INFO, "%s", name);
+ free(name);
+ }
ret.push_back(node);
return ret;
}
@@
-320,4
+323,4
@@
void AccessibleWatcher::onVisibilityChanged(AtspiAccessible *node, bool visible)
void AccessibleWatcher::onObjectDefunct(AtspiAccessible *node)
{
LOG_SCOPE_F(INFO, "object defuncted %p", node);
-}
\ No newline at end of file
+}