strings: don't free, just realloc
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 5 May 2011 17:21:57 +0000 (13:21 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 5 May 2011 17:21:57 +0000 (13:21 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
types/string.c

index 6e5c6f472b41d115181e05c57962a3c9f8676476..18d4c9194e059191759acef58672f24025b7062b 100644 (file)
@@ -35,8 +35,6 @@ void string_copy(struct stream_pos *dest, const struct format *fdest,
                container_of(definition, struct definition_string, p);
        struct declaration_string *string_declaration = string->declaration;
 
-       g_free(string->value);
-       string->value = NULL;
        fsrc->string_read(&string->value, src, string_declaration);
        if (fdest)
                fdest->string_write(dest, string->value, string_declaration);
This page took 0.032473 seconds and 4 git commands to generate.