Memory leak fix.
This commit is contained in:
parent
e3a02542c8
commit
c2b6dc300d
|
@ -143,6 +143,8 @@ static void initChars(Font *f)
|
||||||
|
|
||||||
character = nextCharacter(characters, &i);
|
character = nextCharacter(characters, &i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(characters);
|
||||||
}
|
}
|
||||||
|
|
||||||
void drawText(int x, int y, int size, int align, SDL_Color color, const char *format, ...)
|
void drawText(int x, int y, int size, int align, SDL_Color color, const char *format, ...)
|
||||||
|
|
Loading…
Reference in New Issue