Source

pebble / words / src / words.c

Diff from to

words/src/words.c

 #include <pebble_fonts.h>
 #include "pebble_th.h"
 
+#define UUID {0x82, 0xA1, 0x47, 0x0E, 0x48, 0xFF, 0x48, 0xC9, 0x86, 0xB4, 0x88, 0x99, 0x72, 0xA0, 0x6C, 0xF5}
+
 PBL_APP_INFO(
+	UUID,
 	"Wordsquare",
 	"hudson",
-	1, // Version
+	2, 0, // Version
 	RESOURCE_ID_IMAGE_MENU_ICON,
 	APP_INFO_WATCH_FACE
 );
 }
 
 
+static void
+handle_deinit(
+	AppContextRef ctx
+)
+{
+	(void) ctx;
+
+	fonts_unload_custom_font(font_on);
+	fonts_unload_custom_font(font_off);
+}
+	
+
 void
 pbl_main(
 	void * const params
 {
 	PebbleAppHandlers handlers = {
 		.init_handler	= &handle_init,
+		.deinit_handler = &handle_deinit,
 		.tick_info	= {
 			.tick_handler = &handle_tick,
 			.tick_units = MINUTE_UNIT,