[MPlayer-cvslog] r37889 - trunk/gui/skin/font.c
ib
subversion at mplayerhq.hu
Thu Aug 25 14:21:00 EEST 2016
Author: ib
Date: Thu Aug 25 14:21:00 2016
New Revision: 37889
Log:
Add fntFreeFont().
This opens up the possibility to free a specific font.
Modified:
trunk/gui/skin/font.c
Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c Thu Aug 25 14:19:14 2016 (r37888)
+++ trunk/gui/skin/font.c Thu Aug 25 14:21:00 2016 (r37889)
@@ -79,6 +79,17 @@ static int fntAddNewFont(char *name)
}
/**
+ * @brief Free all memory allocated to a font.
+ *
+ * @param id font ID
+ */
+static void fntFreeFont(int id)
+{
+ bpFree(&Fonts[id]->Bitmap);
+ nfree(Fonts[id]);
+}
+
+/**
* @brief Free all memory allocated to fonts.
*/
void fntFreeFonts(void)
More information about the MPlayer-cvslog
mailing list