From: Paweł Stawicki Date: Fri, 16 Mar 2018 18:42:52 +0000 (+0100) Subject: [prevent][24443] Fix for resource leakage X-Git-Tag: accepted/tizen/unified/20180405.005254~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=08ffe8cf81b44f282fa8b3c072772873e342e950;p=platform%2Fupstream%2Fat-spi2-core.git [prevent][24443] Fix for resource leakage Change-Id: Ie4377a46c1d96e2a88da9851e72e6aa7b5198d09 --- diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c index 6612a21..db4688b 100644 --- a/atspi/atspi-accessible.c +++ b/atspi/atspi-accessible.c @@ -2058,10 +2058,12 @@ append_const_val (GArray *array, const gchar *val) GArray * atspi_accessible_get_interfaces (AtspiAccessible *obj) { - GArray *ret = g_array_new (TRUE, TRUE, sizeof (gchar *)); + GArray *ret; g_return_val_if_fail (obj != NULL, NULL); + ret = g_array_new (TRUE, TRUE, sizeof (gchar *)); + append_const_val (ret, "Accessible"); if (atspi_accessible_is_action (obj)) append_const_val (ret, "Action");