[gnome-settings-daemon] common: Make test-plugin stop and unref the manager



commit 528b978dce10e0c175325b3b71136050cdf42c9e
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 25 13:58:23 2012 +0100

    common: Make test-plugin stop and unref the manager
    
    Makes it easier to valgrind the plugins

 plugins/common/test-plugin.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/common/test-plugin.h b/plugins/common/test-plugin.h
index be877a2..036d6f1 100644
--- a/plugins/common/test-plugin.h
+++ b/plugins/common/test-plugin.h
@@ -43,5 +43,8 @@ main (int argc, char **argv)
 
         gtk_main ();
 
+        STOP (manager);
+        g_object_unref (manager);
+
         return 0;
 }



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