summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/gtkext/gtkbufferdisplay.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fea6791..6c3fa27 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
17-07-14 Cyrille Bagard <nocbos@gmail.com>
+ * src/gtkext/gtkbufferdisplay.c:
+ Increment the reference counter for an attached buffer view.
+
+17-07-14 Cyrille Bagard <nocbos@gmail.com>
+
* plugins/readdex/ids.c:
* plugins/readelf/program.c:
* plugins/readelf/section.c:
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));
}