From 4cd8b9c7f310b6342d422a7e0dd8abe016434d07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Mon, 22 Aug 2016 19:03:18 +0000 Subject: [PATCH] [GB.GTK] * BUG: TextArea: Disconnect signals on text buffer at deletion, to prevent a possible crash. [GB.GTK3] * BUG: TextArea: Disconnect signals on text buffer at deletion, to prevent a possible crash. git-svn-id: svn://localhost/gambas/trunk@7861 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.gtk/src/gtextarea.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gb.gtk/src/gtextarea.cpp b/gb.gtk/src/gtextarea.cpp index 1349c9b51..0377f3996 100644 --- a/gb.gtk/src/gtextarea.cpp +++ b/gb.gtk/src/gtextarea.cpp @@ -512,6 +512,7 @@ void gTextArea::clearRedoStack() gTextArea::~gTextArea() { + g_signal_handlers_disconnect_by_data(gtk_text_view_get_buffer(GTK_TEXT_VIEW(textview)), this); clearRedoStack(); clearUndoStack(); }