mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-13 14:21:08 +00:00
thread_wrapp - improve this a bit
This commit is contained in:
parent
b2bc4cd300
commit
b0ea1e09ac
@ -97,9 +97,9 @@ static void *thread_wrap(void *data_)
|
||||
#endif
|
||||
{
|
||||
struct thread_data *data = (struct thread_data*)data_;
|
||||
if (!data || !data->func)
|
||||
if (!data)
|
||||
return 0;
|
||||
if (data->userdata)
|
||||
if (data->func && data->userdata)
|
||||
data->func(data->userdata);
|
||||
free(data);
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user