vydd / sketch

A Common Lisp framework for the creation of electronic art, visual design, game prototyping, game making, computer graphics, exploration of human-computer interaction, and more.
MIT License
1.39k stars 67 forks source link

Fix free-resource method for NIL #99

Closed Gleefre closed 8 months ago

Gleefre commented 8 months ago

Since there is no primary method defined for free-resource calling it on NIL will signal an error, which doesn't seem to be desired:

* (sketch::free-resource nil)

There is no primary method for the generic function
  #<STANDARD-GENERIC-FUNCTION SKETCH::FREE-RESOURCE (3)>
when called with arguments
  (NIL).
   [Condition of type SB-PCL::NO-PRIMARY-METHOD-ERROR]
See also:
  Common Lisp Hyperspec, 7.6.6.2 [:section]