X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=src%2Fgrits-plugin.c;h=12ca5edef1194651244b94883f2e14087a77043e;hb=7f81b781a2502cb1414d31f67af680b50f17e876;hp=91514fcbb3882795747fe4c43d603fddda92a7e4;hpb=032ddbf6f1d5abbfc96e236e3a9f22b867f009f1;p=grits diff --git a/src/grits-plugin.c b/src/grits-plugin.c index 91514fc..12ca5ed 100644 --- a/src/grits-plugin.c +++ b/src/grits-plugin.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2009-2010 Andy Spencer + * Copyright (C) 2009-2011 Andy Spencer * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -171,7 +171,7 @@ void grits_plugins_free(GritsPlugins *plugins) g_debug("GritsPlugins: free"); for (GList *cur = plugins->plugins; cur; cur = cur->next) { GritsPluginStore *store = cur->data; - g_debug("GritsPlugin: freeing %s refs=%d->%d", store->name, + g_debug("GritsPlugins: freeing %s refs=%d->%d", store->name, G_OBJECT(store->plugin)->ref_count, G_OBJECT(store->plugin)->ref_count-1); grits_plugins_free_store(store); @@ -347,6 +347,7 @@ gboolean grits_plugins_unload(GritsPlugins *plugins, const char *name) if (g_str_equal(store->name, name)) { plugins->plugins = g_list_delete_link(plugins->plugins, cur); grits_plugins_free_store(store); + break; } } return FALSE;