summaryrefslogtreecommitdiff
path: root/src/client/image.c
diff options
context:
space:
mode:
authorDusan Durech <dusan.d@centrum.sk>2008-11-09 16:26:16 +0100
committerDusan Durech <dusan.d@centrum.sk>2008-11-09 16:26:16 +0100
commit4bd8ea7c07e2f3a8c595aed5d166bb823720c2b8 (patch)
treee053a2a9f4f3082e5d5191e312d2df4bae92621f /src/client/image.c
parent77459ad09cbcc1004801f527ce82caa2cbdf6451 (diff)
fix memory leak with image in openGL code
Diffstat (limited to 'src/client/image.c')
-rw-r--r--src/client/image.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/image.c b/src/client/image.c
index c863849..38296e7 100644
--- a/src/client/image.c
+++ b/src/client/image.c
@@ -147,6 +147,8 @@ image_t* newImage(SDL_Surface *surface)
new->tex_id = tid;
+ SDL_FreeSurface(surface);
+
return new;
}
#endif