[gtk+] mir: clear screen data
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] mir: clear screen data
- Date: Thu, 13 Nov 2014 01:08:05 +0000 (UTC)
commit c8826ba8c77b25ab9bd59027e0b87fadb49f5a3b
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Thu Nov 13 01:59:21 2014 +0100
mir: clear screen data
gdk/mir/gdkmirscreen.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gdk/mir/gdkmirscreen.c b/gdk/mir/gdkmirscreen.c
index b182d94..9d6d82f 100644
--- a/gdk/mir/gdkmirscreen.c
+++ b/gdk/mir/gdkmirscreen.c
@@ -163,7 +163,12 @@ static void
gdk_mir_screen_finalize (GObject *object)
{
GdkMirScreen *screen = GDK_MIR_SCREEN (object);
+
mir_connection_set_display_config_change_callback (get_connection (screen), NULL, NULL);
+ mir_display_config_destroy (screen->display_config);
+ g_clear_pointer (&screen->visual);
+ g_clear_pointer (&screen->root_window);
+
G_OBJECT_CLASS (gdk_mir_screen_parent_class)->finalize (object);
}
@@ -280,7 +285,7 @@ gdk_mir_screen_get_n_monitors (GdkScreen *screen)
for (i = 0; i < config->num_outputs; i++)
if (config->outputs[i].used)
- count++;
+ ++count;
return count;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]