summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2015-11-02 15:39:12 +0000
committerThomas Wood <thomas.wood@intel.com>2015-11-11 14:21:12 +0000
commit5570060d331c0942405503a4398864241c1c55ef (patch)
tree0a34e602d5d94986291078744d7e4b2248069a0d /tests
parente9ed1a37fcbb6c3f08bc714cdf5851202f532125 (diff)
tests/kms_force_connector: free the display struct when no longer needed
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_force_connector.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/kms_force_connector.c b/tests/kms_force_connector.c
index 1a4911af..cb8a1796 100644
--- a/tests/kms_force_connector.c
+++ b/tests/kms_force_connector.c
@@ -36,7 +36,6 @@ igt_main
int drm_fd = 0;
drmModeRes *res;
drmModeConnector *vga_connector = NULL, *temp;
- igt_display_t display;
int start_n_modes;
igt_fixture {
@@ -60,6 +59,8 @@ igt_main
}
igt_subtest("force-connector-state") {
+ igt_display_t display;
+
/* force the connector on and check the reported values */
kmstest_force_connector(drm_fd, vga_connector, FORCE_CONNECTOR_ON);
temp = drmModeGetConnector(drm_fd, vga_connector->connector_id);
@@ -71,6 +72,7 @@ igt_main
kmstest_set_vt_graphics_mode();
igt_display_init(&display, drm_fd);
igt_display_commit(&display);
+ igt_display_fini(&display);
/* force the connector off */