Commit 656845b
committed
MecAppBase: Eliminate undisposed objects
The ~MecAppBase() destructor in MecAppBase.cc:28 was calling
sockets_.deleteSockets() which deletes the TcpSocket objects
but does not clean up the HttpMessageStatus structs attached as
userData to each socket.
This mirrors the cleanup logic already present in removeSocket(),
which was never called during destruction.1 parent 359b3a2 commit 656845b
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
32 | 46 | | |
33 | 47 | | |
34 | 48 | | |
| |||
0 commit comments