From 39956a4d8e283a3e81863e2431fef21127db824d Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Tue, 22 Dec 2020 21:13:41 -0500 Subject: [PATCH] Add some documentation about using an autorelease pool --- core-text/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core-text/src/lib.rs b/core-text/src/lib.rs index 876e84a..1e6288b 100644 --- a/core-text/src/lib.rs +++ b/core-text/src/lib.rs @@ -12,6 +12,11 @@ #![allow(non_snake_case)] +/*! +Many of these functions will add objects to the autorelease pool. +If you don't have one this will cause leaks. +*/ + extern crate foreign_types; extern crate libc;