projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dce37c
)
Fix segfault running glretrace without args.
author
José Fonseca
<jose.r.fonseca@gmail.com>
Tue, 16 Aug 2011 19:27:40 +0000
(20:27 +0100)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Tue, 16 Aug 2011 19:27:40 +0000
(20:27 +0100)
trace_parser.cpp
patch
|
blob
|
history
diff --git
a/trace_parser.cpp
b/trace_parser.cpp
index
b0b501a
..
f4073e7
100644
(file)
--- a/
trace_parser.cpp
+++ b/
trace_parser.cpp
@@
-89,9
+89,11
@@
deleteAll(const Container &c)
}
void Parser::close(void) {
- file->close();
- delete file;
- file = NULL;
+ if (file) {
+ file->close();
+ delete file;
+ file = NULL;
+ }
deleteAll(calls);
deleteAll(functions);