From: Michal MalĂ˝ Date: Sun, 27 Jul 2014 08:32:55 +0000 (+0200) Subject: Do not free empty plugin slots X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=5923f5d47f7a4b8f1b809e3ff7e0a6bd2a771d96;p=KLGD.git Do not free empty plugin slots --- diff --git a/klgd.c b/klgd.c index 4238fbf..d9cfe82 100644 --- a/klgd.c +++ b/klgd.c @@ -117,6 +117,9 @@ void klgd_deinit(struct klgd_main *ctx) for (idx = 0; idx < priv->plugin_count; idx++) { struct klgd_plugin *plugin = priv->plugins[idx]; + if (!plugin) + continue; + plugin->deinit(plugin); kfree(plugin); }