rbdc 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTk2M2I2Y2Q1ODEyMzNhZGJlNmQ2ZDE3ZjBmNDIzOTI2Y2FiZTQ3OQ==
4
+ MDU2MGQyMGYwOWY2MmE0ZDU2NTYxYjljNDdkYzg1MTY4NjIxNGU2YQ==
5
5
  data.tar.gz: !binary |-
6
- ZjFlMDNkNTQ3OTk4NzU4YmU4ZmFkZmQ1ZjNhNjk0NjdjYjg4NmIzNw==
6
+ OGM5ZTliZTlhMDE1OWU4ZjllNTc3OWQyYzY5YTMzMDNmMzk5MTk3OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjQwYmFkYzUzYzg1NjgzZjJlZDMxNWJkY2I4NWU3MWYyOGJjMzA2MjViODk2
10
- ZjYxODllNTlkMjEyMWYwZmE2M2JhOWQ5ZWMyZjQyMWMwYjk0YzJlZThiN2E2
11
- ZDUyMDMwZmVjYTYzMTc2YTg1ZmQxOWVmMWU2NzNlNmIyYzI0YWI=
9
+ Y2VjYzdlODM3ZDI1YzgwNjE0NmI2Y2ZlNjM1NzkzMmQ2MTc4ZWUzYTc4NDFi
10
+ ODk3Mzg2YjdmNWNhMmNiNmUwMjQxYzc5ODY2MmUzNjgzYTAzNTRiMjEyMjNh
11
+ OTUyYzM1NjkxZTY2MjA4YTdjOGVlMGE0ZmRhMzE1Yjc0N2UyZTg=
12
12
  data.tar.gz: !binary |-
13
- YTg3ZmRiYjMyNzY5MWIxYmQyZWNjN2YyOTk2MmM1NGJiMjc4ODNlOTBlNjY2
14
- ZTU0MzEzZjQxZWEzNThlMGQwNjQ5NTBkOGY0NTEyNDdmMzljMDhhNjBmMzc1
15
- YjYwMjk5YTgwYzA4ZmRjMTEzOWU5MmI2Nzg0NmJhZDE1OTM5MjE=
13
+ NmYwZTk5ODU4ZTAwZDUwYTg3ZmRjNDU3MzQ2NGNkMTVmOTYxMjkyN2M3OGMy
14
+ NTE0Y2QzODhhNjgyYzI2MjliYmQyMzQyZDIwMjU4NjFiYjQ2ZTcwYTZmZWIy
15
+ ZTAwMThjMzJmZGQxZTBjZjQyZDBiMWY3Mjk5MTZhZWYwY2MzOGU=
@@ -52,6 +52,13 @@ void* dlFindSymbol(DLLib* libHandle, const char* symbol)
52
52
 
53
53
  void dlFreeLibrary(DLLib* libHandle)
54
54
  {
55
- dlclose((void*)libHandle);
55
+
56
+ // Check for NULL for cross-platform consistency. *BSD seems
57
+ // to do that in dlclose, Linux does not. POSIX states "if handle
58
+ // does not refer to an open object, dlclose() returns a non-zero
59
+ // value", which unfortunately sounds like it's not explicitly
60
+ // specified.
61
+ if(libHandle)
62
+ dlclose((void*)libHandle);
56
63
  }
57
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbdc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tassilo Philipp