Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ouch - fix embarrassing gl(z) {} memory leak.

  • Loading branch information...
commit 9866125435ecc1e11dcdb7b3d445ede8b9b6de20 1 parent a649f2e
@jlnr authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/gosu/swig_patches.rb
View
4 lib/gosu/swig_patches.rb
@@ -27,8 +27,8 @@ def protected_draw_2
end
def gl(*args, &block)
- $gosu_blocks ||= []
- $gosu_blocks << block
+ $gosu_gl_blocks ||= []
+ $gosu_gl_blocks << block
unsafe_gl(*args, &block)
end
Please sign in to comment.
Something went wrong with that request. Please try again.