This commit is contained in:
brunoherbelin
2021-04-11 15:24:24 +02:00
parent ab41a0c5d8
commit 765133a3bd

View File

@@ -129,7 +129,7 @@ XMLElement *tinyxml2::XMLElementEncodeArray(XMLDocument *doc, const void *array,
gchar *compressed_array = g_new(gchar, compressed_size); gchar *compressed_array = g_new(gchar, compressed_size);
// encoded string will hold the base64 encoding of the array // encoded string will hold the base64 encoding of the array
gchar *encoded_array = nullptr; const gchar *encoded_array = nullptr;
// zlib compress ((Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)); // zlib compress ((Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen));
if ( Z_OK == compress((Bytef *)compressed_array, &compressed_size, if ( Z_OK == compress((Bytef *)compressed_array, &compressed_size,
@@ -153,7 +153,6 @@ XMLElement *tinyxml2::XMLElementEncodeArray(XMLDocument *doc, const void *array,
// free temporary array // free temporary array
g_free(compressed_array); g_free(compressed_array);
g_free(encoded_array);
return newelement; return newelement;
} }