1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

Moved the PL_perl_destruct_level to irssi_perl_init() so Irssi won't

crash after second /PERLFLUSH.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@528 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-07-23 14:58:54 +00:00 committed by cras
parent 30afa4a611
commit 3e9164df1b

View File

@ -175,7 +175,6 @@ static void irssi_perl_stop(void)
while (perl_timeouts != NULL)
perl_timeout_destroy(perl_timeouts->data);
PL_perl_destruct_level = 1;
perl_destruct(irssi_perl_interp);
perl_free(irssi_perl_interp);
irssi_perl_interp = NULL;
@ -574,6 +573,7 @@ void irssi_perl_init(void)
command_bind("perlflush", NULL, (SIGNAL_FUNC) cmd_flush);
signal_grabbed = siglast_grabbed = FALSE;
PL_perl_destruct_level = 1;
irssi_perl_start();
irssi_perl_autorun();
}