Changeset 12998 for branches


Ignore:
Timestamp:
Oct 20, 2011, 12:40:32 AM (10 years ago)
Author:
jordan
Message:

(2.4x gtk) backport r12793: #5204 "Transmission GTK client crashes on start"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4x/gtk/tr-core.c

    r12680 r12998  
    14021402                                            1000, NULL, &err );
    14031403
    1404     *cookie = g_variant_get_uint32( g_variant_get_child_value( response, 0 ) );
    1405 
    1406     success = err == NULL;
     1404    if( response != NULL )
     1405        *cookie = g_variant_get_uint32( g_variant_get_child_value( response, 0 ) );
     1406
     1407    success = ( response != NULL ) && ( err == NULL );
    14071408
    14081409    /* logging */
     
    14151416
    14161417    /* cleanup */
    1417     g_variant_unref( response );
    1418     g_object_unref( connection );
     1418    if( response != NULL )
     1419        g_variant_unref( response );
     1420    if( connection != NULL )
     1421        g_object_unref( connection );
     1422
    14191423    return success;
    14201424}
Note: See TracChangeset for help on using the changeset viewer.