/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to tests/refcounting/Main.c

  • Committer: Gustav Hartvigsson
  • Date: 2013-09-05 18:47:23 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: gustav.hartvigsson@gmail.com-20130905184723-dlyq9ql0udit638e
Made sure -- using valgrind -- that the SBaseObjectInstance and
SError implementations do not leak.

Woop!

Also: changed from malloc+strlen+strcpy to strdup in s_string_new ().

\0/
 |
/ \

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
  fprintf(stdout, "Refcount: %d\n", s_base_object_get_refcount (obj));
26
26
  
27
27
  s_base_object_unref (obj);
28
 
  fprintf(stdout, "Refcount: %d\n", s_base_object_get_refcount (obj));
29
 
  
30
 
  s_base_object_unref (obj);
31
 
  fprintf(stdout, "Refcount: %d\n", s_base_object_get_refcount (obj));
32
 
  
33
 
  s_base_object_unref (obj);
34
 
  fprintf(stdout, "Refcount: %d\n", s_base_object_get_refcount (obj));
 
28
  //fprintf(stdout, "Refcount: %d\n", s_base_object_get_refcount (obj));
 
29
 
35
30
  return 0;
36
31
}