libaurum: unref GVariant to avoid leak. 17/258717/4
authorWoochanlee <wc0917.lee@samsung.com>
Tue, 25 May 2021 01:31:39 +0000 (10:31 +0900)
committerwoochan lee <wc0917.lee@samsung.com>
Tue, 25 May 2021 03:24:18 +0000 (03:24 +0000)
It deleted by 373712d219167dad48d10c76e4cd3fc98c36fc63

Change-Id: I406e62fb0e939ecd6daf9b5df6d65c88b51918a9

libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc

index 0925ef6..bb3b5e2 100644 (file)
@@ -113,6 +113,7 @@ AtspiAccessibleWatcher::AtspiAccessibleWatcher()
         g_variant_new("(ssv)", "org.a11y.Status", "IsEnabled", enabled_variant),
         G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
 
+    g_variant_unref(enabled_variant);
     g_variant_unref(result);
 }
 
@@ -128,6 +129,7 @@ AtspiAccessibleWatcher::~AtspiAccessibleWatcher()
         G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error);
 
     g_object_unref(mDbusProxy);
+    g_variant_unref(enabled_variant);
     g_variant_unref(result);
 
     atspi_event_quit();