[gxml] document_create_minimal_2.c: incrementally expand the test of memory usage, mwahaha



commit 656800634afaad2e068c950d866cb5a787ab740e
Author: Richard Schwarting <aquarichy gmail com>
Date:   Sun Jul 28 01:30:12 2013 -0400

    document_create_minimal_2.c: incrementally expand the test of memory usage, mwahaha

 test/valgrind/document_create_minimal_2.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/test/valgrind/document_create_minimal_2.c b/test/valgrind/document_create_minimal_2.c
index 2cbd323..b75f887 100644
--- a/test/valgrind/document_create_minimal_2.c
+++ b/test/valgrind/document_create_minimal_2.c
@@ -23,7 +23,9 @@ int main () {
 
   // Add an owner node
   owner = gxml_document_create_element (doc, "Owner");
-  //gxml_node_append_child (GXML_NODE (doc), GXML_NODE (root));
+  g_message ("test: owner refcount %u", G_OBJECT (owner)->ref_count);
+  gxml_node_append_child (GXML_NODE (root), GXML_NODE (owner));
+  g_message ("test: owner refcount %u", G_OBJECT (owner)->ref_count);
   /* gxml_node_append_child (GXML_NODE (root), GXML_NODE (owner)); */
   /* gxml_element_set_attribute (owner, "fullname", "John Green"); */
   /* // TODO: need to figure out what sort of errors these would return, */
@@ -50,7 +52,7 @@ int main () {
   /* g_object_unref (book); */
 
   //g_object_unref (owner);
-  g_object_unref (root);
+  //g_object_unref (root);
   g_object_unref (doc);
 
   // TODO: how do we clean them up?


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