summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmathview/gmathview_mod_stack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gmathview/gmathview_mod_stack.c b/gmathview/gmathview_mod_stack.c
index 31e5091..7634e32 100644
--- a/gmathview/gmathview_mod_stack.c
+++ b/gmathview/gmathview_mod_stack.c
@@ -205,6 +205,8 @@ g_math_view_destroy_mod_stack (GList *stack)
if (!stack)
return;
+ /* FIXME: there's a high probability of mem leak here */
+
stack = g_list_remove (stack, stack->data);
g_math_view_destroy_mod_stack (stack);