[at-spi2-core] Fix possible memory leak



commit abbc4e600600bbf7e255fa6531647f694b784248
Author: Mike Gorse <mgorse suse com>
Date:   Mon Aug 10 14:13:19 2020 -0500

    Fix possible memory leak
    
    Thanks to Shimwoo Kim for spotting.

 atspi/atspi-event-listener.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/atspi/atspi-event-listener.c b/atspi/atspi-event-listener.c
index 7d2db6a7..42c3b20d 100644
--- a/atspi/atspi-event-listener.c
+++ b/atspi/atspi-event-listener.c
@@ -647,6 +647,7 @@ atspi_event_listener_register_from_callback_full (AtspiEventListenerCB callback,
                 callback_destroyed);
   if (!convert_event_type_to_dbus (event_type, &e->category, &e->name, &e->detail, &matchrule_array))
   {
+    g_free (e->event_type);
     g_free (e);
     return FALSE;
   }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]