aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-spinner.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/widgets/ephy-spinner.c b/lib/widgets/ephy-spinner.c
index 51bba77be..0cd867db7 100644
--- a/lib/widgets/ephy-spinner.c
+++ b/lib/widgets/ephy-spinner.c
@@ -226,7 +226,11 @@ select_spinner_image (EphySpinner *spinner)
GList *element;
if (spinner->details->timer_task == 0) {
- return g_object_ref (spinner->details->quiescent_pixbuf);
+ if (spinner->details->quiescent_pixbuf) {
+ return g_object_ref (spinner->details->quiescent_pixbuf);
+ } else {
+ return NULL;
+ }
}
if (spinner->details->image_list == NULL) {