summaryrefslogtreecommitdiff
path: root/src/client/font.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/font.c
parent77459ad09cbcc1004801f527ce82caa2cbdf6451 (diff)
fix memory leak with image in openGL code
Diffstat (limited to 'src/client/font.c')
-rw-r--r--src/client/font.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/client/font.c b/src/client/font.c
index 45ef5e4..8d522b2 100644
--- a/src/client/font.c
+++ b/src/client/font.c
@@ -61,10 +61,6 @@ void drawFont(char *string, int x, int y, int r, int g, int b)
image = newImage(text);
drawImage(image, x, y, 0, 0, image->w, image->h);
destroyImage(image);
-
-#ifdef SUPPORT_OPENGL
- SDL_FreeSurface(text); // we don't need text anymore
-#endif
};
}
@@ -107,10 +103,6 @@ void drawFontMaxSize(char *s, int x, int y, int w, int h, int r, int g, int b)
//posibly broken
drawImage(i, x, y, 0, 0, my_w, my_h);
destroyImage(i);
-
-#ifdef SUPPORT_OPENGL
- SDL_FreeSurface(text); // we don't need text anymore
-#endif
}
/*