mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 12:23:37 +02:00
Merge pull request #52 from dgl/stack-cleanup
Correct use of perl stack macros
This commit is contained in:
commit
aaa0cb6e03
6 changed files with 8 additions and 12 deletions
|
|
@ -74,6 +74,10 @@ static char *perl_expando_event(PerlExpando *rec, SERVER_REC *server,
|
|||
|
||||
ret = NULL;
|
||||
if (SvTRUE(ERRSV)) {
|
||||
(void) POPs;
|
||||
/* call putback before emitting script error signal as that
|
||||
* could manipulate the perl stack. */
|
||||
PUTBACK;
|
||||
/* make sure we don't get back here */
|
||||
if (rec->script != NULL)
|
||||
script_unregister_expandos(rec->script);
|
||||
|
|
@ -82,9 +86,9 @@ static char *perl_expando_event(PerlExpando *rec, SERVER_REC *server,
|
|||
} else if (retcount > 0) {
|
||||
ret = g_strdup(POPp);
|
||||
*free_ret = TRUE;
|
||||
PUTBACK;
|
||||
}
|
||||
|
||||
PUTBACK;
|
||||
FREETMPS;
|
||||
LEAVE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue