[totem/gnome-3-10] main: Shut down plugins on exit()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [totem/gnome-3-10] main: Shut down plugins on exit()
- Date: Mon,  4 Nov 2013 11:08:31 +0000 (UTC)
commit 4f60a1e8aca0bfd4b8ffd08e48e50111de72c5de
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 c1baae0..b29b773 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -521,6 +521,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]