[libpeas] Free PeasEngine after all tests have run



commit b95e82e46c3b1f8445b95f87488fc3e1e6c64f77
Author: Garrett Regier <alias301 gmail com>
Date:   Sun Jan 16 12:40:07 2011 -0800

    Free PeasEngine after all tests have run
    
    testing_engine_free() only fakes freeing it for now due
    to errors caused by resident modules.

 tests/libpeas-gtk/plugin-manager-store.c |    2 ++
 tests/libpeas-gtk/plugin-manager-view.c  |    2 ++
 tests/libpeas-gtk/plugin-manager.c       |    2 ++
 tests/libpeas/engine.c                   |    2 ++
 tests/libpeas/extension-set.c            |    2 ++
 tests/libpeas/extension.c                |    2 ++
 tests/libpeas/plugin-info.c              |    2 ++
 7 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/tests/libpeas-gtk/plugin-manager-store.c b/tests/libpeas-gtk/plugin-manager-store.c
index 38c607e..537b24d 100644
--- a/tests/libpeas-gtk/plugin-manager-store.c
+++ b/tests/libpeas-gtk/plugin-manager-store.c
@@ -287,5 +287,7 @@ main (int    argc,
 
 #undef TEST
 
+  g_object_unref (peas_engine_get_default ());
+
   return g_test_run ();
 }
diff --git a/tests/libpeas-gtk/plugin-manager-view.c b/tests/libpeas-gtk/plugin-manager-view.c
index 288cfd8..aa1d20d 100644
--- a/tests/libpeas-gtk/plugin-manager-view.c
+++ b/tests/libpeas-gtk/plugin-manager-view.c
@@ -264,5 +264,7 @@ main (int    argc,
 
 #undef TEST
 
+  g_object_unref (peas_engine_get_default ());
+
   return g_test_run ();
 }
diff --git a/tests/libpeas-gtk/plugin-manager.c b/tests/libpeas-gtk/plugin-manager.c
index 45f2bf0..b7102d9 100644
--- a/tests/libpeas-gtk/plugin-manager.c
+++ b/tests/libpeas-gtk/plugin-manager.c
@@ -253,5 +253,7 @@ main (int    argc,
 
 #undef TEST
 
+  g_object_unref (peas_engine_get_default ());
+
   return g_test_run ();
 }
diff --git a/tests/libpeas/engine.c b/tests/libpeas/engine.c
index 8784a54..0ad8bce 100644
--- a/tests/libpeas/engine.c
+++ b/tests/libpeas/engine.c
@@ -298,5 +298,7 @@ main (int    argc,
 
 #undef TEST
 
+  g_object_unref (peas_engine_get_default ());
+
   return g_test_run ();
 }
diff --git a/tests/libpeas/extension-set.c b/tests/libpeas/extension-set.c
index 77b73c0..f78ac04 100644
--- a/tests/libpeas/extension-set.c
+++ b/tests/libpeas/extension-set.c
@@ -214,5 +214,7 @@ main (int    argc,
 
 #undef TEST
 
+  g_object_unref (peas_engine_get_default ());
+
   return g_test_run ();
 }
diff --git a/tests/libpeas/extension.c b/tests/libpeas/extension.c
index 978c56d..4e6d969 100644
--- a/tests/libpeas/extension.c
+++ b/tests/libpeas/extension.c
@@ -275,5 +275,7 @@ main (int    argc,
 
 #undef TEST
 
+  g_object_unref (peas_engine_get_default ());
+
   return g_test_run ();
 }
diff --git a/tests/libpeas/plugin-info.c b/tests/libpeas/plugin-info.c
index 5617e3c..5f8bd95 100644
--- a/tests/libpeas/plugin-info.c
+++ b/tests/libpeas/plugin-info.c
@@ -187,5 +187,7 @@ main (int    argc,
 
 #undef TEST
 
+  g_object_unref (peas_engine_get_default ());
+
   return g_test_run ();
 }



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