SOURCES: wdm-rdestroyimage.patch (NEW) - new

adamg adamg at pld-linux.org
Sat Dec 23 19:30:47 CET 2006


Author: adamg                        Date: Sat Dec 23 18:30:47 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- new

---- Files affected:
SOURCES:
   wdm-rdestroyimage.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/wdm-rdestroyimage.patch
diff -u /dev/null SOURCES/wdm-rdestroyimage.patch:1.1
--- /dev/null	Sat Dec 23 19:30:47 2006
+++ SOURCES/wdm-rdestroyimage.patch	Sat Dec 23 19:30:41 2006
@@ -0,0 +1,42 @@
+--- wdm-1.19/src/Login.c~	1999-09-21 16:16:21.000000000 +0200
++++ wdm-1.19/src/Login.c	2006-12-23 19:23:54.399446886 +0100
+@@ -677,7 +677,7 @@
+     fprintf(stderr,"new: ratio=%.5f,width=%i,heigth=%i\n",ratio,w,h);/*DEBUG*/
+ #endif
+     image2 = RScaleImage(image1, w, h);
+-    RDestroyImage(image1);
++    RReleaseImage(image1);
+     if (image2==NULL)
+         return;
+     gray.red = 0xae;
+@@ -685,7 +685,7 @@
+     gray.blue = 0xae;
+     RCombineImageWithColor(image2,&gray);
+     pixmap = WMCreatePixmapFromRImage(panel->scr, image2, 0);
+-    RDestroyImage(image2);
++    RReleaseImage(image2);
+ 
+     if (pixmap==NULL) {
+         fprintf(stderr,"unable to load pixmap\n");
+@@ -1022,10 +1022,10 @@
+         if (tmp==NULL) {
+            fprintf(stderr,"%s could not resize bg image %s\n",
+                         ProgName,bgOption);
+-           RDestroyImage(image);
++           RReleaseImage(image);
+            return NULL;
+         }
+-        RDestroyImage(image);
++        RReleaseImage(image);
+         return tmp;
+ }
+ 
+@@ -1160,7 +1160,7 @@
+         return;
+     }
+     RConvertImage(rcontext, image, &pixmap);
+-    RDestroyImage(image);
++    RReleaseImage(image);
+     XSetWindowBackgroundPixmap(dpy, root_window, pixmap);
+     XClearWindow(dpy, root_window);
+     XFlush(dpy);
================================================================


More information about the pld-cvs-commit mailing list