GdkWaylandWindow: Fix memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=706493
This commit is contained in:
Pavel Vasin 2013-08-21 15:09:29 +04:00 committed by Matthias Clasen
parent 2df6174038
commit 832e77fbb4

View File

@ -814,6 +814,8 @@ gdk_window_impl_wayland_finalize (GObject *object)
if (impl->cursor) if (impl->cursor)
g_object_unref (impl->cursor); g_object_unref (impl->cursor);
g_free (impl->title);
G_OBJECT_CLASS (_gdk_window_impl_wayland_parent_class)->finalize (object); 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 = GDK_WINDOW_IMPL_WAYLAND (window->impl);
impl->title = strdup (title); g_free (impl->title);
impl->title = g_strdup (title);
} }
static void static void