projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9abaf92
)
Fix a memory leak in Server (streams were leaked).
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Tue, 16 Apr 2013 20:35:06 +0000
(22:35 +0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Tue, 16 Apr 2013 20:35:06 +0000
(22:35 +0200)
server.cpp
patch
|
blob
|
history
diff --git
a/server.cpp
b/server.cpp
index
24aa84e
..
8c3382d
100644
(file)
--- a/
server.cpp
+++ b/
server.cpp
@@
-41,6
+41,12
@@
Server::Server()
Server::~Server()
{
+ for (map<string, Stream *>::iterator stream_it = streams.begin();
+ stream_it != streams.end();
+ ++stream_it) {
+ delete stream_it->second;
+ }
+
int ret;
do {
ret = close(epoll_fd);