diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-01-29 00:24:15 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-01-29 00:24:15 +0000 |
commit | b3c524cea10d636bd7e657d274ba9f94c1d1e433 (patch) | |
tree | 7233f12bd72eaf8ee907e778f24ef0caceea2650 /amiga/theme.c | |
parent | 0ce170c18e971121e54ac60c863b523bc5874516 (diff) | |
download | netsurf-b3c524cea10d636bd7e657d274ba9f94c1d1e433.tar.gz netsurf-b3c524cea10d636bd7e657d274ba9f94c1d1e433.tar.bz2 |
Move some things around to try and prevent invalid pointer accesses on exit
Diffstat (limited to 'amiga/theme.c')
-rw-r--r-- | amiga/theme.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/amiga/theme.c b/amiga/theme.c index 0b77dc560..6a0d5dac0 100644 --- a/amiga/theme.c +++ b/amiga/theme.c @@ -168,7 +168,7 @@ void ami_theme_throbber_setup(void) bm = ami_bitmap_from_datatype(throbberfile); throbber = ami_bitmap_get_native(bm, bm->width, bm->height, NULL); - + throbber_width = bm->width / throbber_frames; throbber_height = bm->height; throbber_nsbm = bm; @@ -177,6 +177,7 @@ void ami_theme_throbber_setup(void) void ami_theme_throbber_free(void) { amiga_bitmap_destroy(throbber_nsbm); + throbber_nsbm = NULL; throbber = NULL; } |