summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-05-29 17:43:51 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-06-16 19:54:49 +0200
commit0e3e5248522fa3be281d84b0a7b4e540d2847c7a (patch)
tree4e2eff00f6a4e3c0f51a062b897eeec97103b4cf /src
parent8a56a6107dec16b7876721283de2f56e7a9e3169 (diff)
downloadmate-calc-0e3e5248522fa3be281d84b0a7b4e540d2847c7a.tar.bz2
mate-calc-0e3e5248522fa3be281d84b0a7b4e540d2847c7a.tar.xz
math-equation: Fix memory leak
Diffstat (limited to 'src')
-rw-r--r--src/math-equation.c1
1 files changed, 1 insertions, 0 deletions
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);
}