printers: Return after callback

Return from get_ppds_attribute_async() right after callback
was called. Otherwise the callback could be called twice. (#683229)
This commit is contained in:
Marek Kasik 2012-09-03 21:16:06 +02:00
parent dea424dbee
commit c34e282bab

View file

@ -3188,7 +3188,10 @@ get_ppds_attribute_async (gchar **ppds_names,
GError *error = NULL;
if (!ppds_names || !attribute_name)
callback (NULL, user_data);
{
callback (NULL, user_data);
return;
}
data = g_new0 (GPAData, 1);
data->ppds_names = g_strdupv (ppds_names);