xfree86: Free devlist returned by xf86MatchDevice
xf86MatchDevice returns a dynamically allocated list of GDevPtr-s, free this when we're done with it. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
32e632e858
commit
c57c1e53ea
|
@ -479,6 +479,8 @@ xf86platformProbeDev(DriverPtr drvp)
|
|||
isGPUDevice(devList[i]) ? PLATFORM_PROBE_GPU_SCREEN : 0);
|
||||
}
|
||||
|
||||
free(devList);
|
||||
|
||||
return foundScreen;
|
||||
}
|
||||
|
||||
|
@ -505,6 +507,8 @@ xf86platformAddGPUDevices(DriverPtr drvp)
|
|||
}
|
||||
}
|
||||
|
||||
free(devList);
|
||||
|
||||
return foundScreen;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue