mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05: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
@ -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…
Reference in New Issue
Block a user