Fix a crash
svn path=/trunk/; revision=18746
This commit is contained in:
		@ -1,3 +1,8 @@
 | 
			
		||||
2007-09-07  Matthias Clasen  <mclasen@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* io-tga.c (gdk_pixbuf__tga_stop_load): Handle pbuf 
 | 
			
		||||
	being NULL.  (#468801, Sebastien Bacher)
 | 
			
		||||
 | 
			
		||||
2007-07-21  Matthias Clasen  <mclasen@redhat.com>
 | 
			
		||||
 | 
			
		||||
	* === Released 2.11.6 ===
 | 
			
		||||
 | 
			
		||||
@ -935,7 +935,8 @@ static gboolean gdk_pixbuf__tga_stop_load(gpointer data, GError **err)
 | 
			
		||||
	TGAContext *ctx = (TGAContext *) data;
 | 
			
		||||
	g_return_val_if_fail(ctx != NULL, FALSE);
 | 
			
		||||
 | 
			
		||||
	if (!(ctx->hdr->flags & TGA_ORIGIN_UPPER) && ctx->run_length_encoded) {
 | 
			
		||||
	if (!(ctx->hdr->flags & TGA_ORIGIN_UPPER) && 
 | 
			
		||||
            ctx->run_length_encoded && ctx->pbuf) {
 | 
			
		||||
		pixbuf_flip_vertically (ctx->pbuf);
 | 
			
		||||
		if (ctx->ufunc)
 | 
			
		||||
			(*ctx->ufunc) (ctx->pbuf, 0, 0,
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user