Text::Xslate::load_file returns value and it is pushed on stack. But tx_invoke_load_file function does not pop stack(and never use it), then stack pointer is incorrect after calling tx_invoke_load_file.
This patch sets G_DISCARD flag to call_method(Text::Xslate::load_file) for getting rid of return value from stack automatically.
I confirmed test1, test2 are passed with this change.
Please review this patch. This is related to #130.
Text::Xslate::load_file returns value and it is pushed on stack. But tx_invoke_load_file function does not pop stack(and never use it), then stack pointer is incorrect after calling tx_invoke_load_file.
This patch sets G_DISCARD flag to call_method(Text::Xslate::load_file) for getting rid of return value from stack automatically.
I confirmed test1, test2 are passed with this change.
Please review this patch. This is related to #130.