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:
parent
30afa4a611
commit
3e9164df1b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user