display:Fix null pointer dereference
This commit is contained in:
parent
ced484cdf1
commit
d26e4c1d29
1 changed files with 4 additions and 0 deletions
|
@ -866,6 +866,10 @@ reset_current_config (CcDisplayPanel *panel)
|
|||
panel->current_output = NULL;
|
||||
|
||||
current = cc_display_config_manager_get_current (panel->manager);
|
||||
|
||||
if (!current)
|
||||
return;
|
||||
|
||||
cc_display_config_set_minimum_size (current, MINIMUM_WIDTH, MINIMUM_HEIGHT);
|
||||
panel->current_config = current;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue