aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/qreg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/qreg.c')
-rw-r--r--src/qreg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qreg.c b/src/qreg.c
index 4beea74..1b97689 100644
--- a/src/qreg.c
+++ b/src/qreg.c
@@ -1708,6 +1708,8 @@ teco_machine_qregspec_auto_complete(teco_machine_qregspec_t *ctx, teco_string_t
void
teco_machine_qregspec_free(teco_machine_qregspec_t *ctx)
{
+ if (!ctx)
+ return;
teco_machine_stringbuilding_clear(&ctx->machine_stringbuilding);
teco_string_clear(&ctx->name);
g_free(ctx);