projects
/
platform
/
upstream
/
at-spi2-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c18523
)
Fix memory leak of at-spi-bus-launcher
author
Shinwoo Kim
<cinoo.kim@samsung.com>
Tue, 21 Feb 2017 06:50:48 +0000
(15:50 +0900)
committer
Mike Gorse
<mgorse@linux-e5s4.suse>
Fri, 26 May 2017 02:27:09 +0000
(21:27 -0500)
Allocated memory by g_variant_new_boolean in handle_a11y_enabled_change, handle_screen_reader_enabled_change is not released.
bus/at-spi-bus-launcher.c
patch
|
blob
|
history
diff --git
a/bus/at-spi-bus-launcher.c
b/bus/at-spi-bus-launcher.c
index
93d8fad
..
261353f
100644
(file)
--- a/
bus/at-spi-bus-launcher.c
+++ b/
bus/at-spi-bus-launcher.c
@@
-437,6
+437,9
@@
handle_a11y_enabled_change (A11yBusLauncher *app, gboolean enabled,
&builder,
&invalidated_builder),
NULL);
+
+ g_variant_builder_clear (&builder);
+ g_variant_builder_clear (&invalidated_builder);
}
static void
@@
-475,6
+478,9
@@
handle_screen_reader_enabled_change (A11yBusLauncher *app, gboolean enabled,
&builder,
&invalidated_builder),
NULL);
+
+ g_variant_builder_clear (&builder);
+ g_variant_builder_clear (&invalidated_builder);
}
static gboolean