gdip-pixbuf-loader r41 - trunk/src



Author: doml
Date: Mon Feb 25 15:43:13 2008
New Revision: 41
URL: http://svn.gnome.org/viewvc/gdip-pixbuf-loader?rev=41&view=rev

Log:
free animation on error case; indentation fixes

Modified:
   trunk/src/io-gdip-utils.c

Modified: trunk/src/io-gdip-utils.c
==============================================================================
--- trunk/src/io-gdip-utils.c	(original)
+++ trunk/src/io-gdip-utils.c	Mon Feb 25 15:43:13 2008
@@ -691,6 +691,9 @@
     pixbuf = gdi_bitmap_to_pixbuf (bitmap);
     
     if (!pixbuf) {
+      if (animation != NULL)
+        g_object_unref (G_OBJECT (animation));
+
       destroy_gdipcontext (context);
       gdip_propegate_error (error, _("Couldn't create pixbuf"), GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY);
       return FALSE;
@@ -744,9 +747,9 @@
 }
 
 static void 
-gdip_animation_prepare(GdkPixbuf *pixbuf,
-                       GdkPixbufAnimation *animation,
-                       gpointer user_data)
+gdip_animation_prepare (GdkPixbuf *pixbuf,
+                        GdkPixbufAnimation *animation,
+                        gpointer user_data)
 {
   GdkPixbufAnimation **anim;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]