gobject-introspection 3.3.3 → 3.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc76064c1fdd49d5158174b7377a27e81db7c090894d67c8009c203155cc8a07
4
- data.tar.gz: 478e324f530b7f64261ed38f61c3ba3095c5b4192b8c5aa1f660921f8116a911
3
+ metadata.gz: 2025a461c53e3d51a33e24f8afdb7df6d0b82c8e4da0aa9bab4028691dd23162
4
+ data.tar.gz: 9585740c24b8c4672d9ba4de3d9ef13290de1def07bad69766ef16af1ed482c6
5
5
  SHA512:
6
- metadata.gz: 66c719e89a49879e05930cd0d98487081ebbaee693b7b15c670436c07b89b84bf968b78354aca555f871dcc769eca9961043c56a0ea29a8bd65d0c61bd09f96f
7
- data.tar.gz: 76c172765527cdabfca614a2728948b125b6043d0cc139b049e8b57f7303b0b71ec8adc301775b376129073ed765809421b9aa57156785e530915edc5337136c
6
+ metadata.gz: 288d0a2c1bad883e1566c7dbaab1b44b06f28cbd81ed1e25987306143ddb47abdcde9139c8e102336ac0408d5641591f6cfc3818e0840d380f47e190308afafa
7
+ data.tar.gz: 24d12fc418968352517b2acfb62587730576803b906ca49e1a4e14de910fdd052098896863be4a5be213b8f831a6b24b5cf91343b0051c354ff167105e672722
@@ -54,7 +54,7 @@ rg_s_define_interface(G_GNUC_UNUSED VALUE klass,
54
54
  {
55
55
  GType gtype;
56
56
 
57
- gtype = NUM2ULONG(rb_to_int(rb_gtype));
57
+ gtype = rbgobj_gtype_get(rb_gtype);
58
58
  return G_DEF_INTERFACE(gtype, RVAL2CSTR(rb_name), rb_module);
59
59
  }
60
60
 
@@ -62,14 +62,14 @@ static VALUE
62
62
  struct_alloc(VALUE klass)
63
63
  {
64
64
  VALUE rb_size;
65
- size_t size;
66
- gpointer instance;
65
+ gpointer instance = NULL;
67
66
  gboolean is_owned;
68
67
 
69
68
  rb_size = rb_iv_get(klass, "@size");
70
69
  if (NIL_P(rb_size)) {
71
70
  is_owned = FALSE;
72
71
  } else {
72
+ size_t size;
73
73
  size = NUM2ULONG(rb_size);
74
74
  instance = xcalloc(1, size);
75
75
  is_owned = TRUE;
@@ -556,6 +556,7 @@ module GObjectIntrospection
556
556
  end
557
557
 
558
558
  def load_interface_info(info)
559
+ return if info.gtype == GLib::Type::NONE
559
560
  interface_module =
560
561
  self.class.define_interface(info.gtype,
561
562
  rubyish_class_name(info),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gobject-introspection
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.3.3
19
+ version: 3.3.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.3.3
26
+ version: 3.3.4
27
27
  description: Ruby/GObjectIntrospection provides bindings of GObject Introspection
28
28
  and a loader module that can generate dynamically Ruby bindings of any GObject C
29
29
  libraries