[grilo] core: Make it possible to init() after a deinit()



commit ce2f0d38b73b685ad9c6ab9635a2c625335fabe1
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jul 17 11:04:37 2014 +0200

    core: Make it possible to init() after a deinit()
    
    Reinitialise grl_initialized when calling grl_deinit(). This makes
    it possible to reload plugins again after they've been disabled.
    
    Spotted by vrishab <vrishab in gmail com>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733285

 src/grilo.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/grilo.c b/src/grilo.c
index 4f6ed24..1ba6973 100644
--- a/src/grilo.c
+++ b/src/grilo.c
@@ -182,6 +182,7 @@ grl_deinit (void)
 
   registry = grl_registry_get_default ();
   grl_registry_shutdown (registry);
+  grl_initialized = FALSE;
 }
 
 /**


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