docs: various small fixes
[platform/upstream/glib.git] / gio / tests / data-input-stream.c
index 3d01a73..58a3b3a 100644 (file)
@@ -315,6 +315,7 @@ test_read_upto (void)
           g_assert (memchr (DATA_SEP, stop_char, DATA_SEP_LEN) != NULL);
           g_assert_no_error (error);
         }
+      g_free (data);
     }
   g_assert_no_error (error);
   g_assert_cmpint (line, ==, DATA_PARTS_NUM);
@@ -484,7 +485,6 @@ int
 main (int   argc,
       char *argv[])
 {
-  g_type_init ();
   g_test_init (&argc, &argv, NULL);
 
   g_test_add_func ("/data-input-stream/basic", test_basic);