File wmakerconf-rreleaseimage.patch of Package wmakerconf

--- wmakerconf-2.9/src/mkpreview.c
+++ wmakerconf-2.9/src/mkpreview.c
@@ -95,7 +95,7 @@
 	       width  = height * image->width / image->height;
 	    
 	    scaled = RScaleImage (image, max (width, 22), max (height, 22));
-	    RDestroyImage (image);
+	    RReleaseImage (image);
 	 }
 	 else
 	    scaled = image;
@@ -135,7 +135,7 @@
 		  ptr++;
 	    }
 	 fclose (file);
-	 RDestroyImage (scaled);
+	 RReleaseImage (scaled);
       }
 #else  /* old wraster of wmaker < 0.62.0 */
       {
@@ -167,7 +167,7 @@
 	       }
 	    }
 	 fclose (file);
-	 RDestroyImage (scaled);
+	 RReleaseImage (scaled);
       }
 #endif    
       return 0;
--- wmakerconf-2.9/src/rimage.c
+++ wmakerconf-2.9/src/rimage.c
@@ -111,7 +111,7 @@
    RImage *rimage = rimage_load (filename, width, height);
    
    preview = rimage_2_preview (rimage, preview, FALSE);
-   RDestroyImage (rimage);
+   RReleaseImage (rimage);
 
    return preview;
 }
@@ -160,7 +160,7 @@
 					  : RDiagonalGradient));
 	 preview = rimage_2_preview (rimage, preview,
 				     TRUE && rimage->height < 100);
-	 RDestroyImage (rimage);
+	 RReleaseImage (rimage);
       }
 
       for (k = start; k < n; k++)
@@ -255,20 +255,20 @@
 
       image = rimage_load (filename, -1, -1);
       tiled = RMakeTiledImage (image, width, height);
-      RDestroyImage (image);
+      RReleaseImage (image);
       
       if (tiled)
       {
 	 RCombineImagesWithOpaqueness (tiled, gradient, opacity);
-	 RDestroyImage (gradient);
+	 RReleaseImage (gradient);
 	 
 	 preview = rimage_2_preview (tiled, preview, FALSE);
-	 RDestroyImage (tiled);
+	 RReleaseImage (tiled);
       }
       else
       {
 	 preview = rimage_2_preview (gradient, preview, FALSE);
-	 RDestroyImage (gradient);
+	 RReleaseImage (gradient);
       }
       return preview;
    }
@@ -340,7 +340,7 @@
       {
 	 preview = rimage_2_preview (gradient, preview,
 				     gradient->height < 100);
-	 RDestroyImage (gradient);
+	 RReleaseImage (gradient);
       }
       else
 	 preview = make_image (PKGDATADIR "/black.xpm",
@@ -391,7 +391,7 @@
       if (image)
       {
 	 preview = rimage_2_preview (image, preview, image->height < 100);
-	 RDestroyImage (image);
+	 RReleaseImage (image);
       }
       else
 	 preview = make_image (PKGDATADIR "/black.xpm",
@@ -432,7 +432,7 @@
 	 if (streq (filename, PKGDATADIR "/black.xpm"))
 	 {
 	    RImage *scaled = RScaleImage (image, width, height);
-	    RDestroyImage (image);
+	    RReleaseImage (image);
 	    image = scaled;
 	 }
 	 else if (image->width > (unsigned) width
@@ -446,7 +446,7 @@
 	       width  = height * image->width / image->height;
 	    
 	    scaled = RScaleImage (image, max (width, 22), max (height, 22));
-	    RDestroyImage (image);
+	    RReleaseImage (image);
 	    image = scaled;
 	 }
       }
openSUSE Build Service is sponsored by