From patchwork Sat Feb 27 15:04:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?TWFyY2luIEtvw4XigLpjaWVsbmlja2k=?= X-Patchwork-Id: 82596 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1RF6FjJ011478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 27 Feb 2010 15:06:51 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NlOEC-0004G4-Qr; Sat, 27 Feb 2010 15:05:12 +0000 Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NlOEC-0004Fx-7a for dri-devel@lists.sourceforge.net; Sat, 27 Feb 2010 15:05:12 +0000 X-ACL-Warn: Received: from pigasus.0x04.net ([85.222.19.84]) by sfi-mx-1.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NlOEB-0000fe-4j for dri-devel@lists.sourceforge.net; Sat, 27 Feb 2010 15:05:11 +0000 Received: by pigasus.0x04.net (Postfix, from userid 1000) id 3A8C558CB; Sat, 27 Feb 2010 15:04:46 +0000 (UTC) From: =?utf-8?q?Marcin=20Ko=C5=9Bcielnicki?= To: dri-devel@lists.sourceforge.net Subject: [PATCH 4/6] tests/modetest: Don't get_props on a connector after freeing it. Date: Sat, 27 Feb 2010 15:04:40 +0000 Message-Id: <1267283082-21586-4-git-send-email-koriakin@0x04.net> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1267283082-21586-3-git-send-email-koriakin@0x04.net> References: <1267283082-21586-1-git-send-email-koriakin@0x04.net> <1267283082-21586-2-git-send-email-koriakin@0x04.net> <1267283082-21586-3-git-send-email-koriakin@0x04.net> X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. _SUMMARY_ X-Headers-End: 1NlOEB-0000fe-4j X-BeenThere: dri-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 27 Feb 2010 15:06:51 +0000 (UTC) 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"); }