[gtk+] Win32: free the monitors array
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Win32: free the monitors array
- Date: Fri, 19 Feb 2016 14:49:46 +0000 (UTC)
commit 7505d49741bb6cd2a29bb5d3b3f058ced871b742
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Feb 19 15:40:30 2016 +0100
Win32: free the monitors array
gdk/win32/gdkscreen-win32.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gdk/win32/gdkscreen-win32.c b/gdk/win32/gdkscreen-win32.c
index d67b727..19a69f9 100644
--- a/gdk/win32/gdkscreen-win32.c
+++ b/gdk/win32/gdkscreen-win32.c
@@ -403,6 +403,12 @@ gdk_win32_screen_is_composited (GdkScreen *screen)
static void
gdk_win32_screen_finalize (GObject *object)
{
+ GdkWin32Screen *screen = GDK_WIN32_SCREEN (object);
+ gint i;
+
+ for (i = 0; i < screen->num_monitors; i++)
+ g_free (screen->monitors[i].name);
+ g_free (screen->monitors);
G_OBJECT_CLASS (gdk_win32_screen_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]