From 0a642ecbe55db73c088effdbad415f9699955b36 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 2 Jun 2013 01:45:58 +0200 Subject: [PATCH] Allow more memory to be automatically free'd --- src/xmleditor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xmleditor.c b/src/xmleditor.c index b8b485f..b32f5a6 100644 --- a/src/xmleditor.c +++ b/src/xmleditor.c @@ -1,6 +1,6 @@ /* $Id$ */ static char const _copyright[] = -"Copyright (c) 2010-2012 Pierre Pronchery "; +"Copyright (c) 2010-2013 Pierre Pronchery "; /* This file is part of DeforaOS Desktop XMLEditor */ static char const _license[] = "This program is free software; you can redistribute it and/or modify\n" @@ -176,6 +176,7 @@ XMLEditor * xmleditor_new(void) group = gtk_accel_group_new(); xmleditor->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_add_accel_group(GTK_WINDOW(xmleditor->window), group); + g_object_unref(group); gtk_window_set_default_size(GTK_WINDOW(xmleditor->window), 600, 400); _new_set_title(xmleditor); #if GTK_CHECK_VERSION(2, 6, 0)