mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
document a little pitfall
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user