diff mbox

[4/6] tests/modetest: Don't get_props on a connector after freeing it.

Message ID 1267283082-21586-4-git-send-email-koriakin@0x04.net (mailing list archive)
State New, archived
Headers show

Commit Message

Marcin Kościelnicki Feb. 27, 2010, 3:04 p.m. UTC
None
diff mbox

Patch

diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 26405f4..041b9dd 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -206,10 +206,10 @@  void dump_connectors(void)
 		for (j = 0; j < connector->count_modes; j++)
 			dump_mode(&connector->modes[j]);
 
-		drmModeFreeConnector(connector);
-
 		printf("  props:\n");
 		dump_props(connector);
+
+		drmModeFreeConnector(connector);
 	}
 	printf("\n");
 }