diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2006-05-02 15:42:18 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-05-02 15:42:18 +0000 |
commit | 4d0f3cf076dd18b17865ec912598facc619c40c7 (patch) | |
tree | 57c652d1c19ae1504668964ac15922b0ed8012c0 /docs | |
parent | a7e1f29f034eb2f78aa923346ccb7b5c49424fbc (diff) |
document a little pitfall
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/ChangeLog | 5 | ||||
-rw-r--r-- | docs/reference/gobject/tmpl/gtypemodule.sgml | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index b24ee0ec1..bfb7f7e26 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2006-05-02 Matthias Clasen <mclasen@redhat.com> + + * gobject/tmpl/gtypemodule.sgml: Document a little + pitfall with the last unref for an object. + 2006-04-27 Matthias Clasen <mclasen@redhat.com> * glib/tmpl/unicode.sgml: Mention that GLib 2.12 will diff --git a/docs/reference/gobject/tmpl/gtypemodule.sgml b/docs/reference/gobject/tmpl/gtypemodule.sgml index a240de14f..bd86f2dc3 100644 --- a/docs/reference/gobject/tmpl/gtypemodule.sgml +++ b/docs/reference/gobject/tmpl/gtypemodule.sgml @@ -15,7 +15,9 @@ g_type_module_add_interface(). As long as any instances of these types and interface implementations are in use, the module is kept loaded. When the types and interfaces are gone, the module may be unloaded. If the types and interfaces become used again, the module -will be reloaded. +will be reloaded. Note that the last unref can not happen in module +code, since that would lead to the caller's code being unloaded before +g_object_unref() returns to it. </para> <para> Keeping track of whether the module should be loaded or not is done by |