Fix memory leaks

This commit is contained in:
Aurélien Gâteau 2010-01-29 06:01:50 -05:00 committed by William Jon McCann
parent 117a582b9b
commit e2fcc5e0dd
1 changed files with 8 additions and 0 deletions

View File

@ -293,15 +293,23 @@ notify_get_server_info (char **ret_name,
if (ret_name != NULL)
*ret_name = name;
else
g_free (name);
if (ret_vendor != NULL)
*ret_vendor = vendor;
else
g_free (vendor);
if (ret_version != NULL)
*ret_version = version;
else
g_free (version);
if (spec_version != NULL)
*ret_spec_version = spec_version;
else
g_free (spec_version);
return TRUE;
}