projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Proper fix for waterfall tiles
[supertux.git]
/
src
/
addon
/
md5.cpp
diff --git
a/src/addon/md5.cpp
b/src/addon/md5.cpp
index
93dd1df
..
904e656
100644
(file)
--- a/
src/addon/md5.cpp
+++ b/
src/addon/md5.cpp
@@
-162,7
+162,11
@@
std::string MD5::hex_digest() {
s[32]='\0';
- return s;
+ // Create string from 's'
+ std::string s_str = std::string(s);
+ delete[] s;
+
+ return s_str;
}
std::ostream& operator<<(std::ostream &stream, MD5 context) {