summaryrefslogtreecommitdiff
path: root/src/perl/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/perl/ui')
-rw-r--r--src/perl/ui/Formats.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/perl/ui/Formats.xs b/src/perl/ui/Formats.xs
index 11a2951c..8450c667 100644
--- a/src/perl/ui/Formats.xs
+++ b/src/perl/ui/Formats.xs
@@ -6,6 +6,7 @@ static int magic_free_text_dest(pTHX_ SV *sv, MAGIC *mg)
g_free((char *) dest->target);
g_free(dest);
mg->mg_ptr = NULL;
+ sv_setiv(sv, 0);
return 0;
}