From 0e3e5248522fa3be281d84b0a7b4e540d2847c7a Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 29 May 2020 17:43:51 +0200 Subject: math-equation: Fix memory leak --- src/math-equation.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/math-equation.c') diff --git a/src/math-equation.c b/src/math-equation.c index 45d61cc..c465500 100644 --- a/src/math-equation.c +++ b/src/math-equation.c @@ -998,6 +998,7 @@ math_equation_set_number(MathEquation *equation, const MPNumber *x) equation->priv->ans_end = gtk_text_buffer_create_mark(GTK_TEXT_BUFFER(equation), NULL, &end, TRUE); gtk_text_buffer_apply_tag(GTK_TEXT_BUFFER(equation), equation->priv->ans_tag, &start, &end); g_free(text); + free_state(state); } -- cgit v1.2.1