From: Paweł Stawicki Date: Fri, 16 Mar 2018 18:48:50 +0000 (+0100) Subject: [prevent][40806] Fix for dereference after null check X-Git-Tag: accepted/tizen/unified/20180405.005254~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f30335eb4ead683a5803f8e77f37fb947b16410;p=platform%2Fupstream%2Fat-spi2-core.git [prevent][40806] Fix for dereference after null check Change-Id: Ic7239f40dcd5270a6fa4edf95daf30459ebfcdd4 --- diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c index db4688b..e018379 100644 --- a/atspi/atspi-accessible.c +++ b/atspi/atspi-accessible.c @@ -173,7 +173,7 @@ atspi_accessible_dispose (GObject *object) g_object_unref (accessible); child->accessible_parent = NULL; } - g_object_unref (child); + g_clear_object (&child); } g_list_free (children);