aboutsummaryrefslogtreecommitdiff
path: root/src/context/set.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/context/set.c')
-rw-r--r--src/context/set.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/context/set.c b/src/context/set.c
index f3aff9d..1a15722 100644
--- a/src/context/set.c
+++ b/src/context/set.c
@@ -28,6 +28,8 @@ void tatl_context_set_mute(struct tatl_context *context, int mute) {
}
void tatl_context_set_tag(struct tatl_context *context, const char *const tag) {
+ free(context->_tag);
+
context->_tag = malloc(strlen(tag) * sizeof(char));
strcpy(context->_tag, tag);