summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/intel_display.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/intel_display.c b/src/intel_display.c
index e22c4153..5d85baa7 100644
--- a/src/intel_display.c
+++ b/src/intel_display.c
@@ -741,11 +741,12 @@ intel_output_attach_edid(xf86OutputPtr output)
if (mon && edid_blob->length > 128)
mon->flags |= MONITOR_EDID_COMPLETE_RAWDATA;
-
- drmModeFreePropertyBlob(edid_blob);
}
xf86OutputSetEDID(output, mon);
+
+ if (edid_blob)
+ drmModeFreePropertyBlob(edid_blob);
}
static DisplayModePtr