Commit 6ebf81b
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 9311c89 commit 6ebf81b
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
33 | 47 | | |
34 | 48 | | |
35 | 49 | | |
| |||
0 commit comments