$NetBSD$

--- src/main.c.orig	2004-11-25 13:43:01.000000000 +0000
+++ src/main.c
@@ -109,7 +109,7 @@ main(int argc, char **argv)
 			wwarning(_("could not load image file %s:%s"), path, RMessageForError(RErrorCode));
 		else {
 			icon = WMCreatePixmapFromRImage(scr, tmp, 0);
-			RDestroyImage(tmp);
+			RReleaseImage(tmp);
 			if (icon) {
 				WMSetApplicationIconImage(scr, icon);
 				WMReleasePixmap(icon);
