1 | Index: libs/libmythtv/jobqueue.cpp |
---|
2 | =================================================================== |
---|
3 | --- libs/libmythtv/jobqueue.cpp (revision 13591) |
---|
4 | +++ libs/libmythtv/jobqueue.cpp (working copy) |
---|
5 | @@ -1598,6 +1598,7 @@ |
---|
6 | pthread_attr_init(&attr); |
---|
7 | pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); |
---|
8 | pthread_create(&childThread, &attr, ChildThreadRoutine, this); |
---|
9 | + pthread_attr_destroy(&attr); |
---|
10 | |
---|
11 | while (!childThreadStarted) |
---|
12 | usleep(50); |
---|
13 | Index: libs/libmythtv/tv_play.cpp |
---|
14 | =================================================================== |
---|
15 | --- libs/libmythtv/tv_play.cpp (revision 13591) |
---|
16 | +++ libs/libmythtv/tv_play.cpp (working copy) |
---|
17 | @@ -5258,6 +5258,7 @@ |
---|
18 | pthread_attr_t attr; |
---|
19 | pthread_attr_init(&attr); |
---|
20 | pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); |
---|
21 | + pthread_attr_destroy(&attr); |
---|
22 | |
---|
23 | switch (editType) |
---|
24 | { |
---|
25 | Index: programs/mythfrontend/networkcontrol.cpp |
---|
26 | =================================================================== |
---|
27 | --- programs/mythfrontend/networkcontrol.cpp (revision 13591) |
---|
28 | +++ programs/mythfrontend/networkcontrol.cpp (working copy) |
---|
29 | @@ -182,8 +182,8 @@ |
---|
30 | pthread_attr_t attr; |
---|
31 | pthread_attr_init(&attr); |
---|
32 | pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE); |
---|
33 | - |
---|
34 | pthread_create(&command_thread, &attr, CommandThread, this); |
---|
35 | + pthread_attr_destroy(&attr); |
---|
36 | |
---|
37 | gContext->addListener(this); |
---|
38 | } |
---|
39 | Index: programs/mythbackend/mainserver.cpp |
---|
40 | =================================================================== |
---|
41 | --- programs/mythbackend/mainserver.cpp (revision 13591) |
---|
42 | +++ programs/mythbackend/mainserver.cpp (working copy) |
---|
43 | @@ -2004,8 +2002,8 @@ |
---|
44 | pthread_attr_t attr; |
---|
45 | pthread_attr_init(&attr); |
---|
46 | pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); |
---|
47 | - |
---|
48 | pthread_create(&deleteThread, &attr, SpawnDeleteThread, ds); |
---|
49 | + pthread_attr_destroy(&attr); |
---|
50 | } |
---|
51 | else |
---|
52 | { |
---|
53 | Index: programs/mythbackend/autoexpire.cpp |
---|
54 | =================================================================== |
---|
55 | --- programs/mythbackend/autoexpire.cpp (revision 13591) |
---|
56 | +++ programs/mythbackend/autoexpire.cpp (working copy) |
---|
57 | @@ -959,9 +959,9 @@ |
---|
58 | pthread_attr_t attr; |
---|
59 | pthread_attr_init(&attr); |
---|
60 | pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); |
---|
61 | - |
---|
62 | pthread_create(&expirer->update_thread, &attr, |
---|
63 | SpawnUpdateThread, expirer); |
---|
64 | + pthread_attr_destroy(&attr); |
---|
65 | } |
---|
66 | } |
---|
67 | |
---|