From 0e61b4c8296d554065d934a4a0c27bed8603d3de Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 25 Jan 2003 03:19:40 +0000 Subject: 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 --- src/perl/ui/Formats.xs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/perl/ui') 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; } -- cgit v1.2.3