src/via_driver.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fe5ef9748fe46c92db7a7ff91839b9dd582f6cea
Author: James Simmons <[email protected]>
Date:   Mon Dec 3 18:56:30 2012 +0000

    Doh, shouldn't code when sleepy. Free the TV i2c struct only we still have 
a pBIOSInfo struct left

diff --git a/src/via_driver.c b/src/via_driver.c
index 898b649..c499a4a 100644
--- a/src/via_driver.c
+++ b/src/via_driver.c
@@ -418,10 +418,10 @@ VIAFreeRec(ScrnInfoPtr pScrn)
 
     VIABIOSInfoPtr pBIOSInfo = pVia->pBIOSInfo;
 
-    if (pBIOSInfo->TVI2CDev)
-        xf86DestroyI2CDevRec(pBIOSInfo->TVI2CDev, TRUE);
-
     if (pBIOSInfo) {
+        if (pBIOSInfo->TVI2CDev)
+            xf86DestroyI2CDevRec(pBIOSInfo->TVI2CDev, TRUE);
+
         pVia->pBIOSInfo = NULL;
         free(pBIOSInfo);
     }
_______________________________________________
Openchrome-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/openchrome-devel

Reply via email to