]> Pileus Git - grits/blobdiff - src/grits-plugin.c
Add cube GtkGL example
[grits] / src / grits-plugin.c
index 91514fcbb3882795747fe4c43d603fddda92a7e4..12ca5edef1194651244b94883f2e14087a77043e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
+ * Copyright (C) 2009-2011 Andy Spencer <andy753421@gmail.com>
  *
  * 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;