diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-07 15:26:11 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-07 15:26:11 -0400 |
commit | 5673310364f8c22cebb9785f299ac9d1a762a8d6 (patch) | |
tree | d37ffeeade4253ccab0e4d1b9409fb693caee40f /gtk | |
parent | 2d72ba21ce2c466e88b73780daac0f8ab8378a03 (diff) | |
download | gtk+-5673310364f8c22cebb9785f299ac9d1a762a8d6.tar.gz |
textbuffer: Fix a leak
gtk_text_buffer_insert_markup was leaking all the tags
that it inserts.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtktextbuffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c index 0b03f97c62..33d9b4a8c4 100644 --- a/gtk/gtktextbuffer.c +++ b/gtk/gtktextbuffer.c @@ -4575,6 +4575,8 @@ gtk_text_buffer_insert_with_attributes (GtkTextBuffer *buffer, gtk_text_buffer_insert_with_tags (buffer, iter, text + start, end - start, tag, NULL); gtk_text_buffer_get_iter_at_mark (buffer, iter, mark); + + g_object_unref (tag); } while (pango_attr_iterator_next (attr)); |