Fix memory leak in fpi_print_data_new()

Pointed out by Krystian (yoB) on FS#24
This commit is contained in:
Daniel Drake 2008-04-19 23:09:53 +01:00
parent ebcabc1ade
commit f540ae5d5b

View file

@ -107,8 +107,6 @@ static struct fp_print_data *print_data_new(uint16_t driver_id,
struct fp_print_data *fpi_print_data_new(struct fp_dev *dev, size_t length)
{
struct fp_print_data *data = g_malloc(sizeof(*data) + length);
memset(data, 0, sizeof(*data));
return print_data_new(dev->drv->id, dev->devtype,
fpi_driver_get_data_type(dev->drv), length);
}