free on success, not failure of pthread_join.

SVN revision: 60499
This commit is contained in:
Carsten Haitzler 2011-06-20 06:44:37 +00:00
parent cde2bec9f6
commit 36e2d698a4
1 changed files with 2 additions and 2 deletions

View File

@ -53,8 +53,8 @@ _evas_preload_thread_end(void *data)
Evas_Preload_Pthread_Data *pth = data;
Evas_Preload_Pthread_Data *p = NULL;
if (pthread_join(pth->thread, (void **)&p) != 0) free(p);
if (pthread_join(pth->thread, (void **)&p) == 0) free(p);
else return;
eina_threads_shutdown();
}