Commit 8df01ef4 authored by Guido Gunther's avatar Guido Gunther
Browse files

osk-manager: Use g_autoptr


Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 4aa8a1fb
......@@ -72,7 +72,7 @@ dbus_props_changed_cb (PhoshOsk0SmPuriOSK0 *proxy,
PhoshOskManager *self = PHOSH_OSK_MANAGER (data);
char *property;
GVariantIter i;
GVariant *value;
g_autoptr (GVariant) value = NULL;
g_variant_iter_init (&i, changed_properties);
while (g_variant_iter_next (&i, "{&sv}", &property, &value)) {
......@@ -80,7 +80,6 @@ dbus_props_changed_cb (PhoshOsk0SmPuriOSK0 *proxy,
if (strcmp (property, "Visible") == 0) {
phosh_osk_manager_set_visible (self, g_variant_get_boolean (value));
}
g_variant_unref (value);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment