mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
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
This commit is contained in:
parent
15e39b76b6
commit
aea901728e
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue