ffi-openmpt 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/ffi/openmpt/module.rb +6 -4
- data/lib/ffi/openmpt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c41a87a7640968fba218dc85f06fc381b94fdf1358e1efbf192b17c2f80879d
|
4
|
+
data.tar.gz: e0f363b9858f658aba66f3ce9147c85cbee60979fff63e1a727a64d089f994c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70210e2b830defdf88277b6eba1c93913f6acef5f1975e941d31e7816f65a6e03b649731a57bbc75d2e95bd5c20fa4c7d7a9b1db8db8f597d0203d06dee673d1
|
7
|
+
data.tar.gz: 210ab64a5de126b081f0533594226c282a7015b30799bd90cc9f7caff615c40446245b5bc2f9ecf032800f2f03dbe060abb98d0293214239dcbfb8701775acb0
|
data/CHANGES.md
CHANGED
data/lib/ffi/openmpt/module.rb
CHANGED
@@ -257,10 +257,12 @@ module FFI
|
|
257
257
|
|
258
258
|
def get_names(num, get)
|
259
259
|
(0...num).reduce([]) do |acc, i|
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
260
|
+
begin
|
261
|
+
ptr = send(get, @mod, i)
|
262
|
+
acc << ptr.read_string
|
263
|
+
ensure
|
264
|
+
openmpt_free_string(ptr)
|
265
|
+
end
|
264
266
|
end
|
265
267
|
end
|
266
268
|
end
|
data/lib/ffi/openmpt/version.rb
CHANGED