1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-20 00:35:53 +01:00

Fixed some problems in 0.60.0

This commit is contained in:
dan
1999-06-04 20:13:40 +00:00
parent a10885b99d
commit b9c1aba415
13 changed files with 59 additions and 45 deletions

View File

@@ -46,9 +46,8 @@
#include "../src/wconfig.h"
#include "../WINGs/WINGs.h"
#include "../WINGs/WUtil.h"
#include "../wrlib/wraster.h"
#include <WINGs.h>
#include <wraster.h>
#include <proplist.h>
@@ -529,7 +528,6 @@ parseTexture(RContext *rc, char *text)
image = loadImage(rc, file);
if (!image) {
RDestroyImage(gradient);
goto error;
}
@@ -557,7 +555,8 @@ parseTexture(RContext *rc, char *text)
if (!gradient) {
wwarning("could not render texture:%s",
RMessageForError(RErrorCode));
RDestroyImage(gradient);
RDestroyImage(gradient);
RDestroyImage(image);
goto error;
}
@@ -577,7 +576,7 @@ parseTexture(RContext *rc, char *text)
if (!RConvertImage(rc, tiled, &pixmap)) {
wwarning("could not convert texture:%s",
RMessageForError(RErrorCode));
RDestroyImage(image);
RDestroyImage(tiled);
goto error;
}
texture->width = tiled->width;