From 70c2e33e4ffa76035fbe6a86337b44c8a23d8fa2 Mon Sep 17 00:00:00 2001 From: jatin Date: Thu, 24 Oct 2024 22:05:12 -0700 Subject: [PATCH] Plugin most reserve again on re-activation --- include/clap/ext/draft/scratch-memory.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/clap/ext/draft/scratch-memory.h b/include/clap/ext/draft/scratch-memory.h index 7902a07c..556e5eab 100644 --- a/include/clap/ext/draft/scratch-memory.h +++ b/include/clap/ext/draft/scratch-memory.h @@ -44,9 +44,10 @@ typedef struct clap_host_scratch_memory { // returns false then no scratch memory will be provided, // regardless of any previous calls to `reserve()`. // - // Note that any memory the host allocates to satisfy - // the requested scratch size can be de-allocated by the - // host when the plugin is de-activated. + // When the plugin is de-activated, the scratch memory + // is invalidated, and the host may free the memory if + // appropriate. The plugin will need to reserve scratch + // memory again the next time it is activated. // // In the context of plugins and hosts that implement // the "thread-pool" extension, scratch memory is assumed