summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-08-19 14:00:48 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-08-19 19:29:34 (GMT)
commit7ae7d5fd5659b8df11775cd10f72f327d960f05a (patch)
tree3e0ba9a56d5aa63bbad35b8650b1bdc99a56100e /src
parent075bf06c715b5f198916360350f06acd88e9be90 (diff)
downloadpowder-7ae7d5fd5659b8df11775cd10f72f327d960f05a.zip
powder-7ae7d5fd5659b8df11775cd10f72f327d960f05a.tar.gz
Memory leaks and uninitialised value in catalogue_ui
Diffstat (limited to 'src')
-rw-r--r--src/interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index 3a5662c..939699b 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -5470,7 +5470,7 @@ void catalogue_ui(pixel * vid_buf)
int listy = 0, listxc;
int listx = 0, listyc;
pixel * vid_buf2;
- float scrollvel, offsetf = 0.0f;
+ float scrollvel = 0.0f, offsetf = 0.0f;
char savetext[128] = "";
char * last = mystrdup("");
savelist_e *saves, *cssave, *csave;
@@ -5687,6 +5687,8 @@ openfin:
if(saves)
free_saveslist(saves);
+ free(last);
+ free(vid_buf2);
return;
}