diff --git a/src/gui/rate_banner.cpp b/src/gui/rate_banner.cpp index b7461ef62..75cbcc9b5 100644 --- a/src/gui/rate_banner.cpp +++ b/src/gui/rate_banner.cpp @@ -80,7 +80,8 @@ void CRateBanner::paint(const bool &do_save_bg) addIcons(rat_icon_bg, rat_max); paintCCItems(); - frameBuffer->RestoreScreen(x_base, y, w_tmp, height, pixbuf); + if (pixbuf) + frameBuffer->RestoreScreen(x_base, y, w_tmp, height, pixbuf); delete[] pixbuf; pixbuf = NULL; }