summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-07-14 15:10:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-07-14 15:10:30 (GMT)
commitf3184725ec750317c04f1989ac83c2bbc75865a9 (patch)
tree8c5a070700cdc6b37c9a3e14ce5a06ddbb19aaac
parentea6c3bdb7ff6d65b883a415cf1b46854d37568f3 (diff)
Incremented the reference counter for an attached buffer view.
-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));
}