From f8c8d65ae17e86218bae36d171307d7eade7322a Mon Sep 17 00:00:00 2001 From: oakes Date: Tue, 8 Apr 2014 14:18:07 -0400 Subject: [PATCH] Add dispose warning to screenshot! function --- src/play_clj/core_utils.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/play_clj/core_utils.clj b/src/play_clj/core_utils.clj index c5d4ebd..c741150 100644 --- a/src/play_clj/core_utils.clj +++ b/src/play_clj/core_utils.clj @@ -9,7 +9,8 @@ (defn screenshot! "Captures a screenshot and either returns it as a `pixmap` or saves it to the -specified path. +specified path. Note that when a `pixmap` is no longer needed, you must call +`(pixmap! object :dispose)` to clear it from memory. (screenshot!) (screenshot! \"out.png\")