projects
/
platform
/
core
/
accessibility
/
screen-reader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e6f1d
)
window_tracker: Memory leak fix
38/260838/1
author
Maria Bialota
<m.bialota@samsung.com>
Mon, 5 Jul 2021 09:52:28 +0000
(11:52 +0200)
committer
Maria Białota
<m.bialota@samsung.com>
Mon, 5 Jul 2021 11:27:33 +0000
(11:27 +0000)
Fixed memory leak in _window_append function return with failure.
Change-Id: I4d531ec9fa5bdb292f431c3c45399d591eee5bb7
(cherry picked from commit
8b3dddab9b5d8e58912c2780550d4d978f19b654
)
src/window_tracker.c
patch
|
blob
|
history
diff --git
a/src/window_tracker.c
b/src/window_tracker.c
index c790e87c3286ea3ca7eac450326a252e0ffa7fe9..a0488f0d0d0bdb45de89a086a715b377cd0ef94a 100644
(file)
--- a/
src/window_tracker.c
+++ b/
src/window_tracker.c
@@
-218,6
+218,7
@@
static void _window_append(WindowTrackerData *wtd, AtspiAccessible *window, Eina
wi = g_malloc0(sizeof(WindowInfo));
if (!wi) {
DEBUG("Memory allocation by g_malloc0 is failed");
+ g_free(rect);
return;
}
wi->window = g_object_ref(window);