anastasis-gtk

Demonstrator GUI for Anastasis
Log | Files | Refs | README | LICENSE

commit 4f30dd013c9bcb3a23d351e5d388433c76439560
parent ea2acbe335d7ac9a0a8d913299cdb8023932c081
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 28 Jun 2022 19:21:29 +0200

-fix bad free

Diffstat:
Msrc/anastasis/anastasis-gtk_handle-policy-activate.c | 9++++-----
Msrc/anastasis/anastasis-gtk_pe-edit-policy.c | 6++----
2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/anastasis/anastasis-gtk_handle-policy-activate.c b/src/anastasis/anastasis-gtk_handle-policy-activate.c @@ -33,10 +33,10 @@ void anastasis_gtk_review_policy_treeview_row_activated_cb ( - GtkTreeView *tree_view, - GtkTreePath *path, - GtkTreeViewColumn *column, - gpointer user_data) + GtkTreeView *tree_view, + GtkTreePath *path, + GtkTreeViewColumn *column, + gpointer user_data) { GtkTreeModel *tm = gtk_tree_view_get_model (tree_view); GtkTreeIter iter; @@ -52,7 +52,6 @@ anastasis_gtk_review_policy_treeview_row_activated_cb ( GNUNET_break (0); return; } - gtk_tree_path_free (path); gtk_tree_model_get (tm, &iter, AG_PRMC_POLICY_INDEX, diff --git a/src/anastasis/anastasis-gtk_pe-edit-policy.c b/src/anastasis/anastasis-gtk_pe-edit-policy.c @@ -277,18 +277,16 @@ ap_matches (const char *type, json_t *methods; size_t index; json_t *method; - const char *status; status = json_string_value (json_object_get (ap, - "status")); - + "status")); if (0 != strcasecmp (status, "ok")) { + /* provider is down, cannot proceed */ return false; } - methods = json_object_get (ap, "methods"); GNUNET_break (NULL != methods);