]> git.openstreetmap.org Git - rails.git/blob - config/initializers/gd2.rb
Merge pull request #5362 from AntonKhorev/color-mode-preference-map
[rails.git] / config / initializers / gd2.rb
1 module OpenStreetMap
2   module GD2
3     module AnimatedGif
4       def frames_finalizer
5         proc do
6           @frames.each do |frame|
7             ::GD2::GD2FFI.send(:gdFree, frame.ptr)
8           end
9         end
10       end
11     end
12   end
13 end
14
15 GD2::AnimatedGif.prepend(OpenStreetMap::GD2::AnimatedGif)