diff options
Diffstat (limited to 'src/gui/panels')
-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); + + } } |