After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692704 - crash when creating a new GObject after seed_init_with_context()
crash when creating a new GObject after seed_init_with_context()
Status: RESOLVED FIXED
Product: seed
Classification: Bindings
Component: libseed
git master
Other Linux
: Normal normal
: ---
Assigned To: seed-maint
seed-maint
Depends on:
Blocks:
 
 
Reported: 2013-01-28 12:55 UTC by Alban Crequy
Modified: 2013-02-07 07:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] seed_init_with_context: reuse existing context group (1.23 KB, patch)
2013-01-28 12:55 UTC, Alban Crequy
none Details | Review

Description Alban Crequy 2013-01-28 12:55:33 UTC
Created attachment 234610 [details] [review]
[PATCH] seed_init_with_context: reuse existing context group

seed_init_with_context() must not create a new context group.

Seed creates a temporary context when importing modules (from GObject introspection or otherwise) and passes variables between the contexts. Contexts must be in the same context group, otherwise the behaviour is undefined.

When initializing seed with an existing context, we should reuse its context group rather than creating a new one. Contexts always exist inside a context group.