libaurum: Fix resource leak. 19/258719/2 submit/tizen/20210525.032747
authorWoochanlee <wc0917.lee@samsung.com>
Tue, 25 May 2021 01:43:44 +0000 (10:43 +0900)
committerwoochan lee <wc0917.lee@samsung.com>
Tue, 25 May 2021 03:24:22 +0000 (03:24 +0000)
GError need to free when it done.

Change-Id: I324f44c51eaf1909f8e655736c8517731d8d73f5

libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc

index bb3b5e2..07f611e 100644 (file)
@@ -115,6 +115,7 @@ AtspiAccessibleWatcher::AtspiAccessibleWatcher()
 
     g_variant_unref(enabled_variant);
     g_variant_unref(result);
+    g_error_free(error);
 }
 
 AtspiAccessibleWatcher::~AtspiAccessibleWatcher()
@@ -131,6 +132,7 @@ AtspiAccessibleWatcher::~AtspiAccessibleWatcher()
     g_object_unref(mDbusProxy);
     g_variant_unref(enabled_variant);
     g_variant_unref(result);
+    g_error_free(error);
 
     atspi_event_quit();
     g_thread_join(mEventThread);