summaryrefslogtreecommitdiff
path: root/src/perl/ui/Formats.xs
diff options
context:
space:
mode:
authorWouter Coekaerts <coekie@irssi.org>2005-09-29 21:02:31 +0000
committercoekie <coekie@dbcabf3a-b0e7-0310-adc4-f8d773084564>2005-09-29 21:02:31 +0000
commitaea901728e233d6d1b4ef9b773f198f20fa39599 (patch)
treef35aaee235c46c7a8aee4863e61baa4e84750a53 /src/perl/ui/Formats.xs
parent15e39b76b6631d99ccb20b0bc6fc24da875d3e5f (diff)
downloadirssi-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.xs3
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);