diff options
author | Timo Sirainen <cras@irssi.org> | 2003-01-25 03:19:40 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2003-01-25 03:19:40 +0000 |
commit | 0e61b4c8296d554065d934a4a0c27bed8603d3de (patch) | |
tree | 11041d8560a2cc69ba8aae34b4ef8b26a47203f5 /src/perl/ui/Formats.xs | |
parent | 8fe52e204147fcda0699badc2b1511e9c456ef97 (diff) | |
download | irssi-0e61b4c8296d554065d934a4a0c27bed8603d3de.zip |
Lets see if GC happens to work now without explicit free() calls. Perl
objects now set the C pointer to NULL once they're done with it, so this
might just work without leaking..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3101 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/ui/Formats.xs')
-rw-r--r-- | src/perl/ui/Formats.xs | 1 |
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; } |