summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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));
+ }
}