summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/gui/panels/errors.c16
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 <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);
+
+ }
}