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 /src/gui | |
parent | acd37cbf8578686d2e5bae64b6b4eb6d2bc5376b (diff) |
Fixed some bugs in the error panel.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/panels/errors.c | 16 |
1 files changed, 10 insertions, 6 deletions
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); + + } } |