summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index dced97168b..75b9af1e2b 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3202,7 +3202,7 @@ static void
free_icon_info (GtkWindowIconInfo *info)
{
g_free (info->icon_name);
- g_slice_free (GtkWindowIconInfo, info);
+ g_free (info);
}
@@ -3215,7 +3215,7 @@ ensure_icon_info (GtkWindow *window)
if (info == NULL)
{
- info = g_slice_new0 (GtkWindowIconInfo);
+ info = g_new0 (GtkWindowIconInfo, 1);
g_object_set_qdata_full (G_OBJECT (window),
quark_gtk_window_icon_info,
info,