[libpeas: 2/18] Fix handling invalid loaders



commit b3af3a0821bb403b3baa52fa8979fb7aa3c2a577
Author: Garrett Regier <alias301 gmail com>
Date:   Thu Mar 3 02:29:51 2011 -0800

    Fix handling invalid loaders

 libpeas/peas-engine.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
index 987fb44..5383984 100644
--- a/libpeas/peas-engine.c
+++ b/libpeas/peas-engine.c
@@ -644,7 +644,7 @@ get_plugin_loader (PeasEngine     *engine,
 
   if (loader_info->module == NULL)
     {
-      g_hash_table_insert (loaders, info->loader, NULL);
+      g_hash_table_insert (loaders, g_strdup (info->loader), NULL);
       return NULL;
     }
 
@@ -665,7 +665,7 @@ get_plugin_loader (PeasEngine     *engine,
         g_object_unref (loader_info->loader);
 
       g_object_unref (loader_info->module);
-      g_hash_table_insert (loaders, info->loader, NULL);
+      g_hash_table_insert (loaders, g_strdup (info->loader), NULL);
       return NULL;
     }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]