summaryrefslogtreecommitdiff
path: root/gtk/gtktext.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtktext.c')
-rw-r--r--gtk/gtktext.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 53335ced05..5c1e705604 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -3576,7 +3576,7 @@ gtk_text_password_hint_free (GtkTextPasswordHint *password_hint)
if (password_hint->source_id)
g_source_remove (password_hint->source_id);
- g_slice_free (GtkTextPasswordHint, password_hint);
+ g_free (password_hint);
}
@@ -3645,7 +3645,7 @@ buffer_inserted_text (GtkEntryBuffer *buffer,
quark_password_hint);
if (!password_hint)
{
- password_hint = g_slice_new0 (GtkTextPasswordHint);
+ password_hint = g_new0 (GtkTextPasswordHint, 1);
g_object_set_qdata_full (G_OBJECT (self), quark_password_hint, password_hint,
(GDestroyNotify)gtk_text_password_hint_free);
}