From 9fb5f49595b62ab86a1a7c19162497a5f83f9325 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 4 Mar 2016 19:28:38 -0800 Subject: [PATCH] when a game's opened from an Android db, there's no row data to delete --- xwords4/linux/gtkmain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwords4/linux/gtkmain.c b/xwords4/linux/gtkmain.c index a2e7fd27c..77c15f502 100644 --- a/xwords4/linux/gtkmain.c +++ b/xwords4/linux/gtkmain.c @@ -508,7 +508,9 @@ freeGameGlobals( gpointer data ) LOG_FUNC(); GtkGameGlobals* globals = (GtkGameGlobals*)data; GtkAppGlobals* apg = globals->apg; - recordClosed( apg, globals ); + if ( !!apg ) { + recordClosed( apg, globals ); + } freeGlobals( globals ); return 0; /* don't run again */ }