[libpeas] Fix memory leak in libpeas-gtk tests by freeing tree paths
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Fix memory leak in libpeas-gtk tests by freeing tree paths
- Date: Mon, 17 Jan 2011 13:33:18 +0000 (UTC)
commit ff0cd0fe0e61f0c036ad368a74cd6aff8d255356
Author: Garrett Regier <alias301 gmail com>
Date: Sun Jan 16 12:39:02 2011 -0800
Fix memory leak in libpeas-gtk tests by freeing tree paths
tests/libpeas-gtk/plugin-manager-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/libpeas-gtk/plugin-manager-view.c b/tests/libpeas-gtk/plugin-manager-view.c
index 46834da..288cfd8 100644
--- a/tests/libpeas-gtk/plugin-manager-view.c
+++ b/tests/libpeas-gtk/plugin-manager-view.c
@@ -211,6 +211,8 @@ test_gtk_plugin_manager_view_enable_plugin (TestFixture *fixture)
g_assert (!peas_plugin_info_is_loaded (info));
gtk_tree_view_row_activated (fixture->tree_view, path, column);
g_assert (peas_plugin_info_is_loaded (info));
+
+ gtk_tree_path_free (path);
}
static void
@@ -233,6 +235,8 @@ test_gtk_plugin_manager_view_enable_builtin_plugin (TestFixture *fixture)
g_assert (!peas_plugin_info_is_loaded (info));
gtk_tree_view_row_activated (fixture->tree_view, path, column);
g_assert (!peas_plugin_info_is_loaded (info));
+
+ gtk_tree_path_free (path);
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]