[totem] main: Shut down plugins on exit()



commit c53681f63f50fd973a90c38422bb2c6102a56b9a
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Nov 4 12:06:27 2013 +0100

    main: Shut down plugins on exit()
    
    Due to plugins holding ref's on the engine, simply unref'ing the
    plugin engine won't be enough for the plugins to shutdown.

 src/totem-object.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 9a8176a..7559787 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -490,6 +490,8 @@ totem_object_plugins_init (TotemObject *totem)
 void
 totem_object_plugins_shutdown (TotemObject *totem)
 {
+       if (totem->engine)
+               totem_plugins_engine_shut_down (totem->engine);
        g_clear_object (&totem->engine);
 }
 


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