From 680eed3758b2ad8767d43361d0a024792bf2a6d7 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 15 Jun 2006 11:15:25 +0000 Subject: Background rendering didn't work anymore! - STUPID mistake from me in setting the waitcursor... - icons for UI got freed, without checking if it existed (crash in end) - call to close mainwindow didn't check if window existed note: I usually test the "blender -b" case, which should start blender, initialize all, free all, and print "blender quit" to signal all is fine. --- source/blender/blenkernel/intern/icons.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/blender/blenkernel/intern/icons.c') diff --git a/source/blender/blenkernel/intern/icons.c b/source/blender/blenkernel/intern/icons.c index 9617902e057..ee37a4ec9f9 100644 --- a/source/blender/blenkernel/intern/icons.c +++ b/source/blender/blenkernel/intern/icons.c @@ -50,7 +50,7 @@ /* GLOBALS */ -static GHash* gIcons = 0; +static GHash* gIcons = NULL; static int gNextIconId = 1; @@ -106,8 +106,9 @@ void BKE_icons_init(int first_dyn_id) void BKE_icons_free() { - BLI_ghash_free(gIcons, 0, icon_free); - gIcons = 0; + if(gIcons) + BLI_ghash_free(gIcons, 0, icon_free); + gIcons = NULL; } -- cgit v1.2.3