diff options
Diffstat (limited to 'lib/widgets/ephy-spinner.c')
-rw-r--r-- | lib/widgets/ephy-spinner.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c index 6ce55775c..03d43b9c9 100644 --- a/lib/widgets/ephy-spinner.c +++ b/lib/widgets/ephy-spinner.c @@ -100,7 +100,7 @@ typedef struct static void ephy_spinner_cache_class_init (EphySpinnerCacheClass *klass); static void ephy_spinner_cache_init (EphySpinnerCache *cache); -static GObjectClass *ephy_spinner_cache_parent_class = NULL; +static GObjectClass *ephy_spinner_cache_parent_class; static GType ephy_spinner_cache_get_type (void) @@ -177,12 +177,12 @@ ephy_spinner_cache_data_unload (EphySpinnerCacheData *data) for (size = GTK_ICON_SIZE_INVALID; size < LAST_ICON_SIZE; ++size) { images = data->images[size]; + data->images[size] = NULL; + if (images != NULL && images != EPHY_SPINNER_IMAGES_INVALID) { ephy_spinner_images_unref (images); } - - data->images[size] = NULL; } } |