--- a/dodo/dodooutputstream.c Sun Aug 06 02:07:01 2023 -0500
+++ b/dodo/dodooutputstream.c Sun Aug 06 02:07:37 2023 -0500
@@ -36,7 +36,6 @@
dodo_output_stream_serialize(DodoOutputStream *output_stream) {
DodoStream *stream = DODO_STREAM(output_stream);
const char *value = NULL;
@@ -71,10 +70,7 @@
/* Create a GBytes with the value from the GString and free the GString
- bytes = g_bytes_new_take(str->str, str->len);
- g_string_free(str, FALSE);
+ return g_string_free_to_bytes(str); /******************************************************************************