[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/kdm/backend
From:       Michel Hermier <michel.hermier () gmail ! com>
Date:       2010-02-18 12:08:34
Message-ID: 1266494914.717126.23263.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1092142 by hermier:

Plug a potential use after unref.
Promote the error from V_RET to V_RET_FAIL to avoid that kdm stale if it doesn't \
succeed to talk to the consolekit connector.


 M  +2 -1      client.c  


--- trunk/KDE/kdebase/workspace/kdm/backend/client.c #1092141:1092142
@@ -1340,7 +1340,8 @@
 			logError( "Cannot open ConsoleKit session, likely OOM\n" );
 		}
 		ck_connector_unref( ckConnector );
-		V_RET;
+		ckConnector = 0;
+		V_RET_FAIL( 0 );
 	}
 #endif
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic