gobject-introspection 4.0.4 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/gobject-introspection/rb-gi-arguments.c +17 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38e9d956b4a2b12d6b7f18e524907f137ea691ed0ae4c627b5a74882754e9e64
|
4
|
+
data.tar.gz: 4252e224a2f62af1230489d73d66a1ecaba5ee4cb9de47cda8a33449da0b6b2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01de3b7cfbe851ee07426b2f65d664bb93e2ae092181c5fc88cf9d8f09885ea52e0c5f5b47b2b0e8c4ab6e48b973c6a14661fcd48ed3d114ef343c8f4474f59e
|
7
|
+
data.tar.gz: d359bbcfc24ccd0b4886dedd2b38bcb5633779c5ef5a79303729bdcfc9418da893a06472a12de5ad0e020e0df607eb5959023d127a407660885c892873f0f008
|
@@ -419,8 +419,23 @@ static void
|
|
419
419
|
rb_gi_arguments_metadata_free(gpointer data)
|
420
420
|
{
|
421
421
|
RBGIArgMetadata *metadata = data;
|
422
|
-
if (metadata->scope_type == GI_SCOPE_TYPE_ASYNC
|
423
|
-
|
422
|
+
if (metadata->scope_type == GI_SCOPE_TYPE_ASYNC) {
|
423
|
+
/* We can't free async scope argument's metadata immediately
|
424
|
+
* because async scope argument is called later and it uses its
|
425
|
+
* metadata. Its metadata is freed when async scope argument is called.
|
426
|
+
*
|
427
|
+
* Exception: We can free GDestroyNotify's metadata
|
428
|
+
* immediately because GDestroyNotify is only used in
|
429
|
+
* Ruby/GObjectIntrospection and Ruby/GObjectIntorspection
|
430
|
+
* doesn't use GDestroyNotify's metadata. */
|
431
|
+
if (!metadata->destroy_p) {
|
432
|
+
return;
|
433
|
+
}
|
434
|
+
}
|
435
|
+
/* We can't free notified scope argument's metadata immediately
|
436
|
+
* because notified scope argument is called later and it uses its
|
437
|
+
* metadata. Its metadata is freed when its GDestroyNotify is called. */
|
438
|
+
if (metadata->scope_type == GI_SCOPE_TYPE_NOTIFIED) {
|
424
439
|
return;
|
425
440
|
}
|
426
441
|
rb_gi_arg_metadata_free(metadata);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gobject-introspection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glib2
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0.
|
19
|
+
version: 4.0.5
|
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: 4.0.
|
26
|
+
version: 4.0.5
|
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
|