Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-06-15 15:15:25 +0400
committerTon Roosendaal <ton@blender.org>2006-06-15 15:15:25 +0400
commit680eed3758b2ad8767d43361d0a024792bf2a6d7 (patch)
tree74a055ce3659f568aed8f6584ff1f8211e9ed2e3 /source/blender/blenkernel/intern/icons.c
parentecb204fa7c53414f47c8870ae460807c8ca82e7b (diff)
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.
Diffstat (limited to 'source/blender/blenkernel/intern/icons.c')
-rw-r--r--source/blender/blenkernel/intern/icons.c7
1 files changed, 4 insertions, 3 deletions
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;
}