projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0de172f
)
gdk/wayland: Destroy zxdg_output_v1 upon GdkWaylandMonitor destruction
author
Vlad Zahorodnii
<vlad.zahorodnii@kde.org>
Tue, 22 Nov 2022 09:03:05 +0000
(11:03 +0200)
committer
Vlad Zahorodnii
<vlad.zahorodnii@kde.org>
Tue, 22 Nov 2022 09:18:32 +0000
(11:18 +0200)
It prevents potentially leaking memory.
gdk/wayland/gdkmonitor-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkmonitor-wayland.c
b/gdk/wayland/gdkmonitor-wayland.c
index 165078df07c0fc172d2e58eb5763d586b654daaa..050211314583b42822c6e27882ad5a6f664eefca 100644
(file)
--- a/
gdk/wayland/gdkmonitor-wayland.c
+++ b/
gdk/wayland/gdkmonitor-wayland.c
@@
-47,6
+47,7
@@
gdk_wayland_monitor_finalize (GObject *object)
g_free (monitor->name);
+ g_clear_pointer (&monitor->xdg_output, zxdg_output_v1_destroy);
wl_output_destroy (monitor->output);
G_OBJECT_CLASS (gdk_wayland_monitor_parent_class)->finalize (object);