1
0
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:
Wouter Coekaerts 2005-09-29 21:02:31 +00:00 committed by coekie
parent 15e39b76b6
commit aea901728e

View File

@ -3,7 +3,8 @@
static int magic_free_text_dest(pTHX_ SV *sv, MAGIC *mg) static int magic_free_text_dest(pTHX_ SV *sv, MAGIC *mg)
{ {
TEXT_DEST_REC *dest = (TEXT_DEST_REC *) mg->mg_ptr; 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); g_free(dest);
mg->mg_ptr = NULL; mg->mg_ptr = NULL;
sv_setiv(sv, 0); sv_setiv(sv, 0);