(trunk gtk) #2079: transmission 1.61 crashes on Ubuntu Hardy

This commit is contained in:
Charles Kerr 2009-06-05 15:45:18 +00:00
parent 57c66d48ee
commit 3cbacf4202
1 changed files with 2 additions and 1 deletions

View File

@ -151,7 +151,8 @@ get_themed_icon_pixbuf( GThemedIcon *icon,
pixbuf = gtk_icon_info_load_icon( icon_info, &error );
if ( pixbuf == NULL ) {
g_warning( "could not load icon pixbuf: %s\n", error->message );
if( error && error->message )
g_warning( "could not load icon pixbuf: %s\n", error->message );
g_clear_error( &error );
}