Commit 0d666de0 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winepulse: Avoid accessing the product name after freeing it.

parent f99ad772
......@@ -287,8 +287,13 @@ static WCHAR *get_application_name(BOOL query_app_name)
}
skip:
if (found)
{
name = wcsdup(productname);
free(data);
return name;
}
free(data);
if (found) return wcsdup(productname);
}
name = wcsrchr(path, '\\');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment