From f57dc768dd3770d33e6f476a1b8aab26696f3fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 7 Aug 2025 15:59:55 +0300 Subject: [PATCH] memory: Mark Rust allocator as `MAY_BE_LEAKED` It's a singleton and stays around the whole lifetime of the process. Part-of: --- gstreamer/src/memory_wrapped.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gstreamer/src/memory_wrapped.rs b/gstreamer/src/memory_wrapped.rs index 861c1966f..9818da080 100644 --- a/gstreamer/src/memory_wrapped.rs +++ b/gstreamer/src/memory_wrapped.rs @@ -139,6 +139,7 @@ unsafe extern "C" fn instance_init( // TODO: Could also implement alloc() (*allocator).object.flags |= ffi::GST_ALLOCATOR_FLAG_CUSTOM_ALLOC; + (*allocator).object.flags |= ffi::GST_OBJECT_FLAG_MAY_BE_LEAKED; } fn rust_allocator() -> &'static crate::Allocator {