summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-10-03 23:22:11 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-10-03 23:22:11 (GMT)
commit39d9bf72c549b2b601e9c78aca7a855cd5af9162 (patch)
tree91381bc2e218214867bb555f560dd1c4d95ffc26 /src/plugins
parente7a46981a76c2d60b8485d06ffc408623276a091 (diff)
Handled missing runtime librairies for Python GObject bindings.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/plugin.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index d309332..40f44ce 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -127,13 +127,17 @@ static void g_plugin_module_dispose(GPluginModule *plugin)
for (i = 0; i < pg_iface->required_count; i++)
{
dependency = get_plugin_by_name(pg_iface->required[i], NULL);
- assert(dependency != NULL);
- /* Un coup pour l'appel à get_plugin_by_name(). */
- g_object_unref(G_OBJECT(dependency));
+ /* Si le chargement a bien été complet avant la sortie... */
+ if (dependency != NULL)
+ {
+ /* Un coup pour l'appel à get_plugin_by_name(). */
+ g_object_unref(G_OBJECT(dependency));
+
+ /* Un coup pour la dépendance */
+ g_object_unref(G_OBJECT(dependency));
- /* Un coup pour la dépendance */
- g_object_unref(G_OBJECT(dependency));
+ }
}