From 45164edf2d2fc4004f8f65ce21207a5e0c139308 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Sun, 27 Aug 2017 20:10:18 +0200 Subject: Fixed some bugs in the error panel. --- ChangeLog | 5 +++++ src/gui/panels/errors.c | 16 ++++++++++------ 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3002ffd..3df7764 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 17-08-27 Cyrille Bagard + * src/gui/panels/errors.c: + Fix some bugs in the error panel. + +17-08-27 Cyrille Bagard + * plugins/pychrysa/Makefile.am: Remove the 'quirks.[ch]' files from pychrysalide_la_SOURCES. diff --git a/src/gui/panels/errors.c b/src/gui/panels/errors.c index 67965b5..9f5cef4 100644 --- a/src/gui/panels/errors.c +++ b/src/gui/panels/errors.c @@ -916,9 +916,9 @@ static void update_error_panel_summary(GPanelUpdate *update, GErrorPanel *panel) gtk_label_set_markup(summary, msg); - } + free(msg); - free(msg); + } } @@ -947,11 +947,15 @@ static void on_error_selection_changed(GtkTreeSelection *selection, gpointer unu { gtk_tree_model_get(model, &iter, ETC_ADDR, &addr, -1); - display = get_current_view(); - gtk_display_panel_request_move(display, addr); - g_object_unref(G_OBJECT(display)); + if (addr != NULL) + { + display = get_current_view(); + gtk_display_panel_request_move(display, addr); + g_object_unref(G_OBJECT(display)); - delete_vmpa(addr); + delete_vmpa(addr); + + } } -- cgit v0.11.2-87-g4458