diff options
author | Ton Roosendaal <ton@blender.org> | 2006-06-15 15:15:25 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-06-15 15:15:25 +0400 |
commit | 680eed3758b2ad8767d43361d0a024792bf2a6d7 (patch) | |
tree | 74a055ce3659f568aed8f6584ff1f8211e9ed2e3 /source/blender/blenkernel | |
parent | ecb204fa7c53414f47c8870ae460807c8ca82e7b (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')
-rw-r--r-- | source/blender/blenkernel/intern/icons.c | 7 |
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; } |