Fix [#31465] Segmentation Fault when Ctrl+Up/Down arrow to restore size of 3d Viewport.

Simply added a check for NULL pointer...
This commit is contained in:
Bastien Montagne
2012-05-15 12:14:03 +00:00
parent 3e8f59047e
commit 89d36e7457

View File

@@ -127,7 +127,7 @@ void ED_render_engine_area_exit(ScrArea *sa)
for (ar = sa->regionbase.first; ar; ar = ar->next) { for (ar = sa->regionbase.first; ar; ar = ar->next) {
RegionView3D *rv3d; RegionView3D *rv3d;
if (ar->regiontype != RGN_TYPE_WINDOW) if (ar->regiontype != RGN_TYPE_WINDOW || !(ar->regiondata))
continue; continue;
rv3d = ar->regiondata; rv3d = ar->regiondata;