summaryrefslogtreecommitdiff
path: root/src/math-history-entry.c
diff options
context:
space:
mode:
authormbkma <[email protected]>2020-02-26 10:14:57 +0100
committerlukefromdc <[email protected]>2020-02-27 05:50:08 +0000
commit8bdaa6361e8a9b44efaabded670f2efbe0791eef (patch)
tree02b3bf9a123ee93af094f9f9e5fa0fd34485a09e /src/math-history-entry.c
parent8de77e33ab168df33b2a4bc7a7fe45aed75e9040 (diff)
downloadmate-calc-8bdaa6361e8a9b44efaabded670f2efbe0791eef.tar.bz2
mate-calc-8bdaa6361e8a9b44efaabded670f2efbe0791eef.tar.xz
free variables
Diffstat (limited to 'src/math-history-entry.c')
-rw-r--r--src/math-history-entry.c5
1 files changed, 3 insertions, 2 deletions
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