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