forked from enlightenment/efl
eina_tls: fix calls to TlsFree
This commit is contained in:
parent
86d9b4ed71
commit
0078769f13
|
@ -492,7 +492,7 @@ eina_tls_cb_new(Eina_TLS *key, Eina_TLS_Delete_Cb delete_cb)
|
|||
{
|
||||
if (!_eina_thread_tls_cb_register(*key, delete_cb))
|
||||
{
|
||||
TlsFree(key);
|
||||
TlsFree(*key);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -163,7 +163,7 @@ eina_tls_cb_new(Eina_TLS *key, Eina_TLS_Delete_Cb delete_cb)
|
|||
{
|
||||
if (!_eina_thread_tls_cb_register(*key, delete_cb))
|
||||
{
|
||||
TlsFree(key);
|
||||
TlsFree(*key);
|
||||
return EINA_FALSE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue