summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/math-buttons.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math-buttons.c b/src/math-buttons.c
index 1d96b3e..a97d6ee 100644
--- a/src/math-buttons.c
+++ b/src/math-buttons.c
@@ -511,7 +511,7 @@ load_mode(MathButtons *buttons, ButtonMode mode)
}
if (*panel)
- return *panel;
+ goto out;
builder = *builder_ptr = gtk_builder_new();
// FIXME: Show dialog if failed to load
@@ -663,6 +663,7 @@ load_mode(MathButtons *buttons, ButtonMode mode)
display_changed_cb(buttons->priv->equation, NULL, buttons);
+out:
return *panel;
}