diff options
author | Wouter Coekaerts <coekie@irssi.org> | 2005-09-29 21:02:31 +0000 |
---|---|---|
committer | coekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2005-09-29 21:02:31 +0000 |
commit | aea901728e233d6d1b4ef9b773f198f20fa39599 (patch) | |
tree | f35aaee235c46c7a8aee4863e61baa4e84750a53 /src/perl/ui/Formats.xs | |
parent | 15e39b76b6631d99ccb20b0bc6fc24da875d3e5f (diff) | |
download | irssi-aea901728e233d6d1b4ef9b773f198f20fa39599.zip |
Fix compilation with gcc4 and --with-gc, Patch by Michael Poole
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4013 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/ui/Formats.xs')
-rw-r--r-- | src/perl/ui/Formats.xs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/perl/ui/Formats.xs b/src/perl/ui/Formats.xs index 8450c667..53c45d1b 100644 --- a/src/perl/ui/Formats.xs +++ b/src/perl/ui/Formats.xs @@ -3,7 +3,8 @@ static int magic_free_text_dest(pTHX_ SV *sv, MAGIC *mg) { TEXT_DEST_REC *dest = (TEXT_DEST_REC *) mg->mg_ptr; - g_free((char *) dest->target); + char *target = (char *) dest->target; + g_free(target); g_free(dest); mg->mg_ptr = NULL; sv_setiv(sv, 0); |