printers: Remove a memory leak

TDevice and PpPrintDevice structures have "host_name" member which
should be freed too.
This commit is contained in:
Marek Kasik 2014-01-30 14:19:03 +01:00
parent 1d121ebe65
commit 1ed138e957
2 changed files with 2 additions and 0 deletions

View file

@ -798,6 +798,7 @@ t_device_free (gpointer data)
g_free (device->device_uri);
g_free (device->device_id);
g_free (device->device_ppd);
g_free (device->host_name);
g_free (device);
}
}

View file

@ -3773,6 +3773,7 @@ pp_print_device_free (PpPrintDevice *device)
g_free (device->device_location);
g_free (device->device_name);
g_free (device->device_ppd);
g_free (device->host_name);
g_free (device);
}
}