Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95b9a0b6 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am e835976d: Merge "Tone down a fatal assert" into jb-mr1-dev

* commit 'e835976d':
  Tone down a fatal assert
parents 9c58d96f e835976d
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -686,8 +686,11 @@ status_t HWComposer::acquire(int disp) {
}

void HWComposer::disconnectDisplay(int disp) {
    LOG_ALWAYS_FATAL_IF(disp < 0 || disp == HWC_DISPLAY_PRIMARY ||
                        disp >= HWC_NUM_DISPLAY_TYPES);
    LOG_ALWAYS_FATAL_IF(disp < 0 || disp == HWC_DISPLAY_PRIMARY);
    if (disp >= HWC_NUM_DISPLAY_TYPES) {
        // nothing to do for these yet
        return;
    }
    DisplayData& dd(mDisplayData[disp]);
    if (dd.list != NULL) {
        free(dd.list);