Commit 94caf7ac authored by Tom Denis's avatar Tom Denis Committed by Michel Dänzer
Browse files

Avoid leaking memory on output.



Based on radeon commit 63dc36dc49f93cb00111b497ab6805194bc9d240

and 2nd patch:

Proper leak fix, previous leak fix was bogus.

Based on radeon commit b8ec9ed4fe86952763b963c86f0af0dcae69aa6c
Signed-off-by: Tom Denis's avatarTom St Denis <tom.stdenis@amd.com>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <michel.daenzer@amd.com>
parent f035faec
......@@ -1498,6 +1498,10 @@ drmmode_output_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, drmModeResPtr mode_r
drmmode_output = output->driver_private;
drmmode_output->output_id = mode_res->connectors[num];
drmmode_output->mode_output = koutput;
for (i = 0; i < koutput->count_encoders; i++) {
drmModeFreeEncoder(kencoders[i]);
}
free(kencoders);
return 1;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment