app_server: We must clone the name in MessageLooper().
A number of things that pass it in have it as a stack temporary.
This commit is contained in:
parent
1b333570b5
commit
bae7a949c5
@ -18,7 +18,7 @@
|
|||||||
MessageLooper::MessageLooper(const char* name)
|
MessageLooper::MessageLooper(const char* name)
|
||||||
:
|
:
|
||||||
BLocker(name),
|
BLocker(name),
|
||||||
fName(name),
|
fName(strdup(name)),
|
||||||
fThread(-1),
|
fThread(-1),
|
||||||
fQuitting(false),
|
fQuitting(false),
|
||||||
fDeathSemaphore(-1)
|
fDeathSemaphore(-1)
|
||||||
@ -28,6 +28,7 @@ MessageLooper::MessageLooper(const char* name)
|
|||||||
|
|
||||||
MessageLooper::~MessageLooper()
|
MessageLooper::~MessageLooper()
|
||||||
{
|
{
|
||||||
|
free((void*)fName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user