diff options
-rw-r--r-- | xxxterm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xxxterm.c b/xxxterm.c index 240fd5c..0cdca75 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -4552,8 +4552,10 @@ qmark(struct tab *t, struct karg *arg) switch (arg->i) { case XT_QMARK_SET: - if (qmarks[index] != NULL) + if (qmarks[index] != NULL) { g_free(qmarks[index]); + qmarks[index] = NULL; + } qmarks_load(); /* sync if multiple instances */ qmarks[index] = g_strdup(get_uri(t)); |