diff options
| author | Tom Black <[email protected]> | 2016-04-21 23:21:05 -0400 |
|---|---|---|
| committer | Tom Black <[email protected]> | 2016-04-21 23:21:05 -0400 |
| commit | bfb3bde4aa0824b7aaea71a9a85158724c74e678 (patch) | |
| tree | fed85ff578ccc23925f4780be85be3ed31c60451 /ext | |
| parent | d2e768198355269f14953fe6b30d23b2d5e987ff (diff) | |
| download | ruby2d-bfb3bde4aa0824b7aaea71a9a85158724c74e678.tar.gz ruby2d-bfb3bde4aa0824b7aaea71a9a85158724c74e678.zip | |
Use S2D_FreeWindow instead of S2D_Close
Simple 2D’s `S2D_Close` now just exits the window loop, doesn’t
actually free anything
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/ruby2d/ruby2d.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/ruby2d/ruby2d.c b/ext/ruby2d/ruby2d.c index 1726d90..281f402 100644 --- a/ext/ruby2d/ruby2d.c +++ b/ext/ruby2d/ruby2d.c @@ -31,10 +31,10 @@ struct sound_data { /* - * Function pointer to close the Simple 2D window + * Function pointer to free the Simple 2D window */ -static void close_window() { - S2D_Close(window); +static void free_window() { + S2D_FreeWindow(window); } @@ -265,7 +265,7 @@ static VALUE ruby2d_show(VALUE s) { S2D_Show(window); - atexit(close_window); + atexit(free_window); return Qnil; } |
