1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Compare commits

..

No commits in common. "207a48e986063eaebbc18e0f7eb3838e0aaaf73d" and "40efbe8529166b3ab62175f8ea5576cdc2d628db" have entirely different histories.

View File

@ -1069,9 +1069,7 @@ public:
void* p = pthread_getspecific(m_key);
if (!p)
{
RPMallocInit init;
p = (ProfilerThreadData*)tracy_malloc( sizeof( ProfilerThreadData ) );
new (p) ProfilerThreadData(GetProfilerData());
p = new ProfilerThreadData(GetProfilerData());
pthread_setspecific(m_key, p);
}
return *static_cast<ProfilerThreadData*>(p);
@ -1081,8 +1079,7 @@ private:
static void sDestructor(void* p)
{
((ProfilerThreadData*)p)->~ProfilerThreadData();
tracy_free(p);
delete static_cast<ProfilerThreadData*>(p);
}
};