summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorSonicadvance1 <sonicadvance1@gmail.com>2010-02-14 14:33:04 +0000
committerSonicadvance1 <sonicadvance1@gmail.com>2010-02-14 14:33:04 +0000
commita8793cbe5229cc0ad16afe66489ffcffaac5bf5a (patch)
tree4aba33cfe655fb650c087ce9e90c608ca52f99ae /Source/Core/Common
parent5b1d21d1a15d9dbe7c9dc3e720993817fbd8a465 (diff)
うそ!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5057 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/Src/Thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/Src/Thread.cpp b/Source/Core/Common/Src/Thread.cpp
index 87522a87f6..8346ccb592 100644
--- a/Source/Core/Common/Src/Thread.cpp
+++ b/Source/Core/Common/Src/Thread.cpp
@@ -422,7 +422,7 @@ void SetCurrentThreadName(const TCHAR* szThreadName)
// creates a memory leak if it actually doesn't fail
// since we don't delete it once we delete the thread
// we are using a single threadname_key anyway for all threads
- if(!pthread_setspecific(threadname_key, strdup(szThreadName)))
+ if(!pthread_setspecific(threadname_key, name))
free(name);
INFO_LOG(COMMON, "%s(%s)\n", __FUNCTION__, szThreadName);
}