From 8bdaa6361e8a9b44efaabded670f2efbe0791eef Mon Sep 17 00:00:00 2001 From: mbkma Date: Wed, 26 Feb 2020 10:14:57 +0100 Subject: free variables --- src/math-history-entry.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/math-history-entry.c') diff --git a/src/math-history-entry.c b/src/math-history-entry.c index baf3a7c..6948eac 100644 --- a/src/math-history-entry.c +++ b/src/math-history-entry.c @@ -98,8 +98,8 @@ math_history_entry_insert_entry(MathHistoryEntry *history_entry, char *equation, builder = gtk_builder_new(); if(gtk_builder_add_from_resource (builder, UI_HISTORY_ENTRY_RESOURCE_PATH, &error) == 0) { - g_print("gtk_builder_add_from_resource FAILED\n"); - g_print("%s\n",error->message); + g_warning("Error loading history-entry UI: %s", error->message); + g_clear_error(&error); return; } grid = GET_WIDGET(builder, "grid"); @@ -113,6 +113,7 @@ math_history_entry_insert_entry(MathHistoryEntry *history_entry, char *equation, gtk_label_set_text(GTK_LABEL(history_entry->priv->equation_label), history_entry->priv->equation_string); gtk_label_set_text(GTK_LABEL(history_entry->priv->answer_label), final_answer); gtk_builder_connect_signals(builder, history_entry); + g_free(final_answer); } static void -- cgit v1.2.1