[gegl] tests/buffer: s/gegl_buffer_destroy/g_object_unref/g



commit e12f440e31030b6aea6750465698fb9a98811265
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Fri Mar 30 18:10:46 2012 +0200

    tests/buffer: s/gegl_buffer_destroy/g_object_unref/g

 tests/buffer/buffer-test.c                         |    2 +-
 tests/buffer/tests/buffer_shift_diagonal.c         |    6 +++---
 tests/buffer/tests/buffer_shift_horizontal.c       |    6 +++---
 tests/buffer/tests/buffer_shift_vertical.c         |    6 +++---
 tests/buffer/tests/disabled_abyss.c                |    6 +++---
 tests/buffer/tests/dup_linear_from_data.c          |    6 +++---
 tests/buffer/tests/get_shifted.c                   |    8 ++++----
 tests/buffer/tests/linear_from_data.c              |    2 +-
 tests/buffer/tests/linear_from_data_rows.c         |    2 +-
 tests/buffer/tests/linear_modify.c                 |    2 +-
 tests/buffer/tests/linear_new.c                    |    2 +-
 tests/buffer/tests/linear_proxy_modify.c           |    2 +-
 tests/buffer/tests/save_small_roi.c                |    4 ++--
 tests/buffer/tests/sub_rect_fills_and_gets.c       |    8 ++++----
 tests/buffer/tests/sub_sub_fill.c                  |    6 +++---
 tests/buffer/tests/sub_sub_fill2.c                 |    6 +++---
 tests/buffer/tests/test_blank.c                    |    2 +-
 tests/buffer/tests/test_checkerboard.c             |    2 +-
 tests/buffer/tests/test_gegl_buffer_copy.c         |    4 ++--
 .../tests/test_gegl_buffer_copy_lower_left.c       |    4 ++--
 .../tests/test_gegl_buffer_copy_lower_right.c      |    4 ++--
 tests/buffer/tests/test_gegl_buffer_copy_self.c    |    2 +-
 .../tests/test_gegl_buffer_copy_upper_left.c       |    4 ++--
 .../tests/test_gegl_buffer_copy_upper_right.c      |    4 ++--
 tests/buffer/tests/test_gegl_buffer_dup_copy1.c    |    4 ++--
 tests/buffer/tests/test_gegl_buffer_dup_copy2.c    |    4 ++--
 tests/buffer/tests/test_gegl_buffer_dup_delete1.c  |    4 ++--
 tests/buffer/tests/test_gegl_buffer_dup_delete2.c  |    4 ++--
 tests/buffer/tests/test_gegl_buffer_dup_write1.c   |    4 ++--
 tests/buffer/tests/test_gegl_buffer_dup_write2.c   |    4 ++--
 tests/buffer/tests/test_gegl_buffer_dup_write3.c   |    4 ++--
 tests/buffer/tests/test_gegl_buffer_dup_write4.c   |    4 ++--
 tests/buffer/tests/test_gegl_buffer_iterator1.c    |    2 +-
 tests/buffer/tests/test_gegl_buffer_iterator1sub.c |    4 ++--
 tests/buffer/tests/test_gegl_buffer_iterator2.c    |    2 +-
 tests/buffer/tests/test_gegl_buffer_iterator2sub.c |    4 ++--
 tests/buffer/tests/test_gegl_buffer_iterator3.c    |    2 +-
 tests/buffer/tests/test_gegl_buffer_iterator3sub.c |    4 ++--
 tests/buffer/tests/test_gegl_buffer_iterator4.c    |    2 +-
 tests/buffer/tests/test_gegl_buffer_iterator4sub.c |    4 ++--
 tests/buffer/tests/test_get_buffer_scaled.c        |    2 +-
 tests/buffer/tests/test_get_buffer_scaled2.c       |    2 +-
 tests/buffer/tests/test_gray.c                     |    2 +-
 tests/buffer/tests/test_rectangle.c                |    2 +-
 tests/buffer/tests/test_sample.c                   |    8 ++++----
 tests/buffer/tests/vertical_gradient.c             |    2 +-
 46 files changed, 87 insertions(+), 87 deletions(-)
---
diff --git a/tests/buffer/buffer-test.c b/tests/buffer/buffer-test.c
index c832f81..a09536e 100644
--- a/tests/buffer/buffer-test.c
+++ b/tests/buffer/buffer-test.c
@@ -289,7 +289,7 @@ void rectangle (GeglBuffer *buffer,
 
   sub_buf = gegl_buffer_create_sub_buffer (buffer, &rect);
   fill (sub_buf, value);
-  gegl_buffer_destroy (sub_buf);
+  g_object_unref (sub_buf);
 }
 
 #include "buffer-tests.inc"
diff --git a/tests/buffer/tests/buffer_shift_diagonal.c b/tests/buffer/tests/buffer_shift_diagonal.c
index 87e1de1..ae72fbb 100644
--- a/tests/buffer/tests/buffer_shift_diagonal.c
+++ b/tests/buffer/tests/buffer_shift_diagonal.c
@@ -20,8 +20,8 @@ TEST ()
 
   fill (subsub, 0.2);
   print_buffer (buffer);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (subsub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (subsub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/buffer_shift_horizontal.c b/tests/buffer/tests/buffer_shift_horizontal.c
index 70a1f9a..67f0b94 100644
--- a/tests/buffer/tests/buffer_shift_horizontal.c
+++ b/tests/buffer/tests/buffer_shift_horizontal.c
@@ -19,8 +19,8 @@ TEST ()
 
   fill (subsub, 1.0);
   print_buffer (buffer);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (subsub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (subsub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/buffer_shift_vertical.c b/tests/buffer/tests/buffer_shift_vertical.c
index 5b06f42..dbf7e0f 100644
--- a/tests/buffer/tests/buffer_shift_vertical.c
+++ b/tests/buffer/tests/buffer_shift_vertical.c
@@ -20,8 +20,8 @@ TEST ()
 
   fill (subsub, 1.0);
   print_buffer (buffer);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (subsub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (subsub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/disabled_abyss.c b/tests/buffer/tests/disabled_abyss.c
index a3e67b0..af7e18b 100644
--- a/tests/buffer/tests/disabled_abyss.c
+++ b/tests/buffer/tests/disabled_abyss.c
@@ -33,8 +33,8 @@ TEST ()
 
   fill (subsub, 1.0);
   print_buffer (buffer);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (subsub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (subsub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/dup_linear_from_data.c b/tests/buffer/tests/dup_linear_from_data.c
index a9f7c4f..3d056e3 100644
--- a/tests/buffer/tests/dup_linear_from_data.c
+++ b/tests/buffer/tests/dup_linear_from_data.c
@@ -16,11 +16,11 @@ TEST ()
                                              (GDestroyNotify) g_free, /* destroy_notify */
                                              NULL   /* destroy_notify_data */);
   buffer2 = gegl_buffer_dup (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer2);
   buffer2 = gegl_buffer_dup (buffer);
   vgrad (buffer);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/get_shifted.c b/tests/buffer/tests/get_shifted.c
index 4a1d73b..96f6c60 100644
--- a/tests/buffer/tests/get_shifted.c
+++ b/tests/buffer/tests/get_shifted.c
@@ -24,9 +24,9 @@ TEST ()
   /*fill (subsub, 0.2);*/
   print_buffer (buffer);
   print_buffer (foo);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (subsub);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (foo);
+  g_object_unref (sub);
+  g_object_unref (subsub);
+  g_object_unref (buffer);
+  g_object_unref (foo);
   test_end ();
 }
diff --git a/tests/buffer/tests/linear_from_data.c b/tests/buffer/tests/linear_from_data.c
index d798094..412879d 100644
--- a/tests/buffer/tests/linear_from_data.c
+++ b/tests/buffer/tests/linear_from_data.c
@@ -16,6 +16,6 @@ TEST ()
                                              (GDestroyNotify) g_free, /* destroy_notify */
                                              NULL   /* destroy_notify_data */);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/linear_from_data_rows.c b/tests/buffer/tests/linear_from_data_rows.c
index a95f9b9..419da9d 100644
--- a/tests/buffer/tests/linear_from_data_rows.c
+++ b/tests/buffer/tests/linear_from_data_rows.c
@@ -16,6 +16,6 @@ TEST ()
                                              (GDestroyNotify) g_free, /* destroy_notify */
                                              NULL   /* destroy_notify_data */);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/linear_modify.c b/tests/buffer/tests/linear_modify.c
index 4398405..21f0956 100644
--- a/tests/buffer/tests/linear_modify.c
+++ b/tests/buffer/tests/linear_modify.c
@@ -28,6 +28,6 @@ TEST ()
   fill_rect (buffer, &roi, 0.2);
 
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/linear_new.c b/tests/buffer/tests/linear_new.c
index ec6f94e..2a5e105 100644
--- a/tests/buffer/tests/linear_new.c
+++ b/tests/buffer/tests/linear_new.c
@@ -11,6 +11,6 @@ TEST ()
   roi.x+=20;
   fill_rect (buffer, &roi, 0.2);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/linear_proxy_modify.c b/tests/buffer/tests/linear_proxy_modify.c
index c6c4650..2b5435a 100644
--- a/tests/buffer/tests/linear_proxy_modify.c
+++ b/tests/buffer/tests/linear_proxy_modify.c
@@ -28,6 +28,6 @@ TEST ()
   fill_rect (buffer, &roi, 0.2);
 
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/save_small_roi.c b/tests/buffer/tests/save_small_roi.c
index 42e1ce5..fb96ebe 100644
--- a/tests/buffer/tests/save_small_roi.c
+++ b/tests/buffer/tests/save_small_roi.c
@@ -17,13 +17,13 @@ TEST ()
 
   /* Save */
   gegl_buffer_save (buffer, path, &roi);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   buffer = NULL;
 
   /* Load */
   buffer = gegl_buffer_load (path);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   buffer = NULL;
 
   g_unlink (path);
diff --git a/tests/buffer/tests/sub_rect_fills_and_gets.c b/tests/buffer/tests/sub_rect_fills_and_gets.c
index b546b01..f439ad0 100644
--- a/tests/buffer/tests/sub_rect_fills_and_gets.c
+++ b/tests/buffer/tests/sub_rect_fills_and_gets.c
@@ -25,9 +25,9 @@ TEST ()
   print (("final sub3:\n"));
   print_buffer (sub3);
 
-  gegl_buffer_destroy (sub1);
-  gegl_buffer_destroy (sub2);
-  gegl_buffer_destroy (sub3);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub1);
+  g_object_unref (sub2);
+  g_object_unref (sub3);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/sub_sub_fill.c b/tests/buffer/tests/sub_sub_fill.c
index 4e412e9..c16a079 100644
--- a/tests/buffer/tests/sub_sub_fill.c
+++ b/tests/buffer/tests/sub_sub_fill.c
@@ -13,8 +13,8 @@ TEST ()
   subsub = gegl_buffer_create_sub_buffer (sub, &subsubrect);
   fill (subsub, 1.0);
   print_buffer (buffer);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (subsub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (subsub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/sub_sub_fill2.c b/tests/buffer/tests/sub_sub_fill2.c
index e7dec5d..82116ce 100644
--- a/tests/buffer/tests/sub_sub_fill2.c
+++ b/tests/buffer/tests/sub_sub_fill2.c
@@ -15,8 +15,8 @@ TEST ()
   fill (subsub, 1.0);
   print_buffer (buffer);
   print_buffer (subsub);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (subsub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (subsub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_blank.c b/tests/buffer/tests/test_blank.c
index 0620d79..c42b428 100644
--- a/tests/buffer/tests/test_blank.c
+++ b/tests/buffer/tests/test_blank.c
@@ -7,7 +7,7 @@ TEST ()
 
   buffer = gegl_buffer_new (&rect, babl_format ("Y float"));
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
 
   test_end ();
 }
diff --git a/tests/buffer/tests/test_checkerboard.c b/tests/buffer/tests/test_checkerboard.c
index b61158d..8110d38 100644
--- a/tests/buffer/tests/test_checkerboard.c
+++ b/tests/buffer/tests/test_checkerboard.c
@@ -8,7 +8,7 @@ TEST ()
   buffer = gegl_buffer_new (&rect, babl_format ("Y float"));
   checkerboard (buffer, 3, 0.0, 1.0);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
 
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_copy.c b/tests/buffer/tests/test_gegl_buffer_copy.c
index 5406f23..fd88ca5 100644
--- a/tests/buffer/tests/test_gegl_buffer_copy.c
+++ b/tests/buffer/tests/test_gegl_buffer_copy.c
@@ -11,7 +11,7 @@ TEST ()
   vgrad (buffer);
   gegl_buffer_copy (buffer, &source, buffer2, &dest); 
   print_buffer (buffer2);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_copy_lower_left.c b/tests/buffer/tests/test_gegl_buffer_copy_lower_left.c
index c63748b..4a0c32c 100644
--- a/tests/buffer/tests/test_gegl_buffer_copy_lower_left.c
+++ b/tests/buffer/tests/test_gegl_buffer_copy_lower_left.c
@@ -16,7 +16,7 @@ TEST ()
   gegl_buffer_copy (buffer, &rect, buffer2, &rect);
   }
   print_buffer (buffer2);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_copy_lower_right.c b/tests/buffer/tests/test_gegl_buffer_copy_lower_right.c
index c13f161..21ad884 100644
--- a/tests/buffer/tests/test_gegl_buffer_copy_lower_right.c
+++ b/tests/buffer/tests/test_gegl_buffer_copy_lower_right.c
@@ -16,8 +16,8 @@ TEST ()
   gegl_buffer_copy (buffer, &rect, buffer2, &rect);
   }
   print_buffer (buffer2);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
 
diff --git a/tests/buffer/tests/test_gegl_buffer_copy_self.c b/tests/buffer/tests/test_gegl_buffer_copy_self.c
index 5f2e13f..1b59de5 100644
--- a/tests/buffer/tests/test_gegl_buffer_copy_self.c
+++ b/tests/buffer/tests/test_gegl_buffer_copy_self.c
@@ -10,6 +10,6 @@ TEST ()
   vgrad (buffer);
   gegl_buffer_copy (buffer, &source, buffer, &dest); /* copying to self */
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_copy_upper_left.c b/tests/buffer/tests/test_gegl_buffer_copy_upper_left.c
index 5d2a9a7..5567ced 100644
--- a/tests/buffer/tests/test_gegl_buffer_copy_upper_left.c
+++ b/tests/buffer/tests/test_gegl_buffer_copy_upper_left.c
@@ -14,7 +14,7 @@ TEST ()
   gegl_buffer_copy (buffer, &rect, buffer2, &rect);
   }
   print_buffer (buffer2);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_copy_upper_right.c b/tests/buffer/tests/test_gegl_buffer_copy_upper_right.c
index 68250a0..3dbb81c 100644
--- a/tests/buffer/tests/test_gegl_buffer_copy_upper_right.c
+++ b/tests/buffer/tests/test_gegl_buffer_copy_upper_right.c
@@ -15,7 +15,7 @@ TEST ()
   gegl_buffer_copy (buffer, &rect, buffer2, &rect);
   }
   print_buffer (buffer2);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_dup_copy1.c b/tests/buffer/tests/test_gegl_buffer_dup_copy1.c
index fa9fd1e..a1a5aac 100644
--- a/tests/buffer/tests/test_gegl_buffer_dup_copy1.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_copy1.c
@@ -7,7 +7,7 @@ TEST ()
   vgrad (buffer);
   buffer2 = gegl_buffer_dup (buffer);
   print_buffer (buffer2);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_dup_copy2.c b/tests/buffer/tests/test_gegl_buffer_dup_copy2.c
index c069694..a9198c0 100644
--- a/tests/buffer/tests/test_gegl_buffer_dup_copy2.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_copy2.c
@@ -7,7 +7,7 @@ TEST ()
   vgrad (buffer);
   buffer2 = gegl_buffer_dup (buffer);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_dup_delete1.c b/tests/buffer/tests/test_gegl_buffer_dup_delete1.c
index c7e5d1d..38bcdf5 100644
--- a/tests/buffer/tests/test_gegl_buffer_dup_delete1.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_delete1.c
@@ -6,8 +6,8 @@ TEST ()
   buffer = gegl_buffer_new (&bound, babl_format ("Y float"));
   vgrad (buffer);
   buffer2 = gegl_buffer_dup (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   print_buffer (buffer2);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_dup_delete2.c b/tests/buffer/tests/test_gegl_buffer_dup_delete2.c
index 6a35ac0..f9de3f7 100644
--- a/tests/buffer/tests/test_gegl_buffer_dup_delete2.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_delete2.c
@@ -6,8 +6,8 @@ TEST ()
   buffer = gegl_buffer_new (&bound, babl_format ("Y float"));
   vgrad (buffer);
   buffer2 = gegl_buffer_dup (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer2);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_dup_write1.c b/tests/buffer/tests/test_gegl_buffer_dup_write1.c
index 6552974..ffd7319 100644
--- a/tests/buffer/tests/test_gegl_buffer_dup_write1.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_write1.c
@@ -8,7 +8,7 @@ TEST ()
   buffer2 = gegl_buffer_dup (buffer);
   checkerboard (buffer, 3, 0.0, 1.0);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_dup_write2.c b/tests/buffer/tests/test_gegl_buffer_dup_write2.c
index 239d5e8..f960a94 100644
--- a/tests/buffer/tests/test_gegl_buffer_dup_write2.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_write2.c
@@ -8,7 +8,7 @@ TEST ()
   buffer2 = gegl_buffer_dup (buffer);
   checkerboard (buffer, 3, 0.0, 1.0);
   print_buffer (buffer2);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_dup_write3.c b/tests/buffer/tests/test_gegl_buffer_dup_write3.c
index 5899b29..4cbbeaa 100644
--- a/tests/buffer/tests/test_gegl_buffer_dup_write3.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_write3.c
@@ -8,7 +8,7 @@ TEST ()
   buffer2 = gegl_buffer_dup (buffer);
   checkerboard (buffer2, 3, 0.0, 1.0);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_dup_write4.c b/tests/buffer/tests/test_gegl_buffer_dup_write4.c
index 434e36e..8b975f3 100644
--- a/tests/buffer/tests/test_gegl_buffer_dup_write4.c
+++ b/tests/buffer/tests/test_gegl_buffer_dup_write4.c
@@ -8,7 +8,7 @@ TEST ()
   buffer2 = gegl_buffer_dup (buffer);
   checkerboard (buffer2, 3, 0.0, 1.0);
   print_buffer (buffer2);
-  gegl_buffer_destroy (buffer);
-  gegl_buffer_destroy (buffer2);
+  g_object_unref (buffer);
+  g_object_unref (buffer2);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_iterator1.c b/tests/buffer/tests/test_gegl_buffer_iterator1.c
index 93858e3..9af6734 100644
--- a/tests/buffer/tests/test_gegl_buffer_iterator1.c
+++ b/tests/buffer/tests/test_gegl_buffer_iterator1.c
@@ -7,6 +7,6 @@ TEST ()
   buffer = gegl_buffer_new (&extent, babl_format ("Y float"));
   fill_rect (buffer, &roi, 0.5);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_iterator1sub.c b/tests/buffer/tests/test_gegl_buffer_iterator1sub.c
index a68c1e9..217cd83 100644
--- a/tests/buffer/tests/test_gegl_buffer_iterator1sub.c
+++ b/tests/buffer/tests/test_gegl_buffer_iterator1sub.c
@@ -11,7 +11,7 @@ TEST ()
 
   fill_rect (sub, &roi, 0.5);
   print_buffer (buffer);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_iterator2.c b/tests/buffer/tests/test_gegl_buffer_iterator2.c
index 0aa8dda..5f09fb3 100644
--- a/tests/buffer/tests/test_gegl_buffer_iterator2.c
+++ b/tests/buffer/tests/test_gegl_buffer_iterator2.c
@@ -7,6 +7,6 @@ TEST ()
   buffer = gegl_buffer_new (&extent, babl_format ("Y float"));
   fill_rect (buffer, &roi, 0.5);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_iterator2sub.c b/tests/buffer/tests/test_gegl_buffer_iterator2sub.c
index 1b2af4b..2b1bb36 100644
--- a/tests/buffer/tests/test_gegl_buffer_iterator2sub.c
+++ b/tests/buffer/tests/test_gegl_buffer_iterator2sub.c
@@ -10,7 +10,7 @@ TEST ()
   sub = gegl_buffer_create_sub_buffer (buffer, &sextent);
   fill_rect (sub, &roi, 0.5);
   print_buffer (buffer);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_iterator3.c b/tests/buffer/tests/test_gegl_buffer_iterator3.c
index 2040af8..8935fa2 100644
--- a/tests/buffer/tests/test_gegl_buffer_iterator3.c
+++ b/tests/buffer/tests/test_gegl_buffer_iterator3.c
@@ -7,6 +7,6 @@ TEST ()
   buffer = gegl_buffer_new (&extent, babl_format ("Y float"));
   fill_rect (buffer, &roi, 0.5);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_iterator3sub.c b/tests/buffer/tests/test_gegl_buffer_iterator3sub.c
index b2b0daa..0c9cf42 100644
--- a/tests/buffer/tests/test_gegl_buffer_iterator3sub.c
+++ b/tests/buffer/tests/test_gegl_buffer_iterator3sub.c
@@ -10,7 +10,7 @@ TEST ()
   sub = gegl_buffer_create_sub_buffer (buffer, &sextent);
   fill_rect (sub, &roi, 0.5);
   print_buffer (buffer);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_iterator4.c b/tests/buffer/tests/test_gegl_buffer_iterator4.c
index 4558a08..714c8b1 100644
--- a/tests/buffer/tests/test_gegl_buffer_iterator4.c
+++ b/tests/buffer/tests/test_gegl_buffer_iterator4.c
@@ -7,6 +7,6 @@ TEST ()
   buffer = gegl_buffer_new (&extent, babl_format ("Y float"));
   fill_rect (buffer, &roi, 0.5);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_gegl_buffer_iterator4sub.c b/tests/buffer/tests/test_gegl_buffer_iterator4sub.c
index 62ae633..15cf4eb 100644
--- a/tests/buffer/tests/test_gegl_buffer_iterator4sub.c
+++ b/tests/buffer/tests/test_gegl_buffer_iterator4sub.c
@@ -10,7 +10,7 @@ TEST ()
   sub = gegl_buffer_create_sub_buffer (buffer, &sextent);
   fill_rect (sub, &roi, 0.5);
   print_buffer (buffer);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/test_get_buffer_scaled.c b/tests/buffer/tests/test_get_buffer_scaled.c
index c7b5ea2..0c2e3b7 100644
--- a/tests/buffer/tests/test_get_buffer_scaled.c
+++ b/tests/buffer/tests/test_get_buffer_scaled.c
@@ -24,7 +24,7 @@ TEST ()
         }
     }
 
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
 
   g_free (buf);
   test_end ();
diff --git a/tests/buffer/tests/test_get_buffer_scaled2.c b/tests/buffer/tests/test_get_buffer_scaled2.c
index 0b2458e..4057d6f 100644
--- a/tests/buffer/tests/test_get_buffer_scaled2.c
+++ b/tests/buffer/tests/test_get_buffer_scaled2.c
@@ -16,7 +16,7 @@ TEST ()
 
 
   print_linear_buffer_u8 (getrect.width, getrect.height, buf);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
 
   g_free (buf);
   test_end ();
diff --git a/tests/buffer/tests/test_gray.c b/tests/buffer/tests/test_gray.c
index b08e9e3..60c849d 100644
--- a/tests/buffer/tests/test_gray.c
+++ b/tests/buffer/tests/test_gray.c
@@ -8,7 +8,7 @@ TEST ()
   buffer = gegl_buffer_new (&rect, babl_format ("Y float"));
   fill (buffer, 0.5);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
 
   test_end ();
 }
diff --git a/tests/buffer/tests/test_rectangle.c b/tests/buffer/tests/test_rectangle.c
index c317ed4..1ebddda 100644
--- a/tests/buffer/tests/test_rectangle.c
+++ b/tests/buffer/tests/test_rectangle.c
@@ -9,7 +9,7 @@ TEST ()
   fill (buffer, 0.5);
   rectangle (buffer, 5,5, 10, 10, 0.0);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
 
   test_end ();
 }
diff --git a/tests/buffer/tests/test_sample.c b/tests/buffer/tests/test_sample.c
index b5c6a99..921c7ff 100644
--- a/tests/buffer/tests/test_sample.c
+++ b/tests/buffer/tests/test_sample.c
@@ -20,9 +20,9 @@ TEST ()
   fill (subsubsub, 1.0);
 
   print_buffer (buffer);
-  gegl_buffer_destroy (sub);
-  gegl_buffer_destroy (subsub);
-  gegl_buffer_destroy (subsubsub);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (sub);
+  g_object_unref (subsub);
+  g_object_unref (subsubsub);
+  g_object_unref (buffer);
   test_end ();
 }
diff --git a/tests/buffer/tests/vertical_gradient.c b/tests/buffer/tests/vertical_gradient.c
index 4c1461b..dc531a4 100644
--- a/tests/buffer/tests/vertical_gradient.c
+++ b/tests/buffer/tests/vertical_gradient.c
@@ -7,6 +7,6 @@ TEST ()
   buffer = gegl_buffer_new (&rect, babl_format ("Y float"));
   vgrad (buffer);
   print_buffer (buffer);
-  gegl_buffer_destroy (buffer);
+  g_object_unref (buffer);
   test_end();
 }



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