diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-08-27 18:10:18 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-08-27 18:10:18 (GMT) |
commit | 45164edf2d2fc4004f8f65ce21207a5e0c139308 (patch) | |
tree | 9289f35251fac875cc3578e7e7b8e524f9cf125c | |
parent | acd37cbf8578686d2e5bae64b6b4eb6d2bc5376b (diff) |
Fixed some bugs in the error panel.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/gui/panels/errors.c | 16 |
2 files changed, 15 insertions, 6 deletions
@@ -1,5 +1,10 @@ 17-08-27 Cyrille Bagard <nocbos@gmail.com> + * src/gui/panels/errors.c: + Fix some bugs in the error panel. + +17-08-27 Cyrille Bagard <nocbos@gmail.com> + * 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); + + } } |