[Wayland-bugs] [Bug 786693] wayland: fix fontconfig monitoring
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Thu Mar 1 09:53:45 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=786693
Bastien Nocera <bugzilla at hadess.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #369118|none |needs-work
status| |
--- Comment #10 from Bastien Nocera <bugzilla at hadess.net> ---
Review of attachment 369118:
Looks good otherwise.
::: gdk/wayland/gdkscreen-wayland.c
@@ +929,3 @@
+ proxy = g_dbus_proxy_new_for_bus_finish (result, NULL);
+
+ g_clear_object (&screen_wayland->dbus_cancellable);
No, don't do this, keep it around.
Instead, you'll want to cancel it it in dispose().
@@ +955,3 @@
+ }
+
+ g_variant_unref (value);
g_variant_unref() doesn't like being passed NULL.
@@ +963,3 @@
+ {
+ modules = g_variant_get_string (value, &length);
+ screen_wayland->dbus_settings.modules = g_strndup (modules, length);
You're leaking the old value of dbus_settings.modules.
Seeing as the string will be nul-terminated, free the old string, and use
g_variant_dup_string() to assign the new value.
@@ +966,3 @@
+ }
+
+ g_variant_unref (value);
Ditto.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20180301/6b178119/attachment.html>
More information about the wayland-bugs
mailing list