[2/3] dpnet: Free previous allocated data

Nikolay Sivov bunglehead at gmail.com
Tue Mar 3 03:07:01 CST 2015


On 03.03.2015 11:59, Alistair Leslie-Hughes wrote:
> +            if(entry->type == DPNA_DATATYPE_STRING_ANSI)
> +               heap_free(entry->data.ansi);
> +            else if(entry->type == DPNA_DATATYPE_STRING)
> +                heap_free(entry->data.string);
> +            else if(entry->type == DPNA_DATATYPE_BINARY)
> +                heap_free(entry->data.string);
> +

You can as well just call heap_free(entry->data.binary) for all those 
types (or add another neutral 'ptr' field).



More information about the wine-devel mailing list