mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-10-31 03:26:19 +01:00
Avoid leaking memory from FFI closure if no segfault risk
This commit is contained in:
parent
8e96029a32
commit
f77269c480
3
girffi.c
3
girffi.c
@ -494,4 +494,7 @@ g_callable_info_prepare_closure (GICallableInfo *callable_info,
|
||||
void g_callable_info_free_closure (GICallableInfo *callable_info, ffi_closure *closure)
|
||||
{
|
||||
g_warning ("g_callable_info_free_closure is deprecated and leaks memory\n");
|
||||
#ifdef LEGACY_GIRFFI_FREE
|
||||
g_callable_info_destroy_closure(callable_info, closure);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user