Skip to content

Fix memory leaks

I'm seeing increasing memory use when implementing a custom model for use with Gtk's TreeView widget, or when using a data func with a standard ListStore model. After investigation, I believe this is because in invoke_perl_code's implementation, calls to gperl_alloc_temp (in prepare_invocation_info, via _prepare_perl_invocation_info) don't occur between ENTER; SAVETMPS; and FREETMPS; LEAVE;.

Additionally, there seem to be a missing call to g_base_info_unref in _fill_ffi_return_value.

Merge request reports