summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gtkext/gtkbufferdisplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gtkext/gtkbufferdisplay.c b/src/gtkext/gtkbufferdisplay.c
index 6aec453..ff70032 100644
--- a/src/gtkext/gtkbufferdisplay.c
+++ b/src/gtkext/gtkbufferdisplay.c
@@ -815,6 +815,7 @@ void gtk_buffer_display_set_view(GtkBufferDisplay *display, GBufferView *view)
g_object_unref(G_OBJECT(display->view));
display->view = view;
+ g_object_ref(G_OBJECT(view));
}