Fix T39640: Crash on maximizing/minimizing UV/Image Editor
Added a NULL-pointer check for now, actual issue might be burried somewhere else (aka maybe traversal of the WM is not actually correct here?)
This commit is contained in:
@@ -478,7 +478,8 @@ static void render_image_update_pass_and_layer(RenderJob *rj, RenderResult *rr,
|
||||
for (sa = win->screen->areabase.first; sa; sa = sa->next) {
|
||||
if (sa->spacetype == SPACE_IMAGE) {
|
||||
SpaceImage *sima = sa->spacedata.first;
|
||||
if (sima->image == rj->image) {
|
||||
// sa->spacedata might be empty when toggling fullscreen mode.
|
||||
if (sima != NULL && sima->image == rj->image) {
|
||||
if (first_sa == NULL) {
|
||||
first_sa = sa;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user