forked from AuroraMiddleware/gtk
GdkWaylandWindow: Fix memory leak
https://bugzilla.gnome.org/show_bug.cgi?id=706493
This commit is contained in:
parent
2df6174038
commit
832e77fbb4
@ -814,6 +814,8 @@ gdk_window_impl_wayland_finalize (GObject *object)
|
||||
if (impl->cursor)
|
||||
g_object_unref (impl->cursor);
|
||||
|
||||
g_free (impl->title);
|
||||
|
||||
G_OBJECT_CLASS (_gdk_window_impl_wayland_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
@ -1503,7 +1505,8 @@ gdk_wayland_window_set_title (GdkWindow *window,
|
||||
|
||||
impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
|
||||
|
||||
impl->title = strdup (title);
|
||||
g_free (impl->title);
|
||||
impl->title = g_strdup (title);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user