virtualbox 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -302,8 +302,11 @@ module VirtualBox
302
302
  def string_to_utf16(string)
303
303
  return nil if string.nil?
304
304
 
305
+ # Note that the string below must be duplicated as of FFI 1.0.8
306
+ # since this modifies the string in-place and causes a memory leak
307
+ # otherwise.
305
308
  ptr = pointer_for_type(:pointer)
306
- lib.xpcom[:pfnUtf8ToUtf16].call(string, ptr)
309
+ lib.xpcom[:pfnUtf8ToUtf16].call(string.dup, ptr)
307
310
  ptr.read_pointer()
308
311
  end
309
312
 
@@ -1,5 +1,5 @@
1
1
  module VirtualBox
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.5"
3
3
 
4
4
  module Version
5
5
  # Returns a boolean denoting whether the current VirtualBox
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: virtualbox
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.4
5
+ version: 0.8.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mitchell Hashimoto
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-12 00:00:00 -07:00
13
+ date: 2011-05-15 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -425,7 +425,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
425
425
  requirements:
426
426
  - - ">="
427
427
  - !ruby/object:Gem::Version
428
- hash: -3965605946174079114
428
+ hash: -3599764745906657662
429
429
  segments:
430
430
  - 0
431
431
  version: "0"