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\")