Button proper freeing/newing.
Dave Foster daf@minuslab.net
4 files changed,
24 insertions(+),
19 deletions(-)
M
obrender/render.c
→
obrender/render.c
@@ -204,7 +204,6 @@ RrAppearance *out;
out = g_slice_new0(RrAppearance); out->inst = inst; - out->ref = 1; out->textures = numtex; out->surface.bevel_light_adjust = 128; out->surface.bevel_dark_adjust = 64;@@ -247,7 +246,6 @@ RrSurface *spo, *spc;
RrAppearance *copy = g_slice_new(RrAppearance); copy->inst = orig->inst; - copy->ref = 1; spo = &(orig->surface); spc = &(copy->surface);
M
obrender/render.h
→
obrender/render.h
@@ -222,8 +222,6 @@
struct _RrAppearance { const RrInstance *inst; - gint ref; - RrSurface surface; gint textures; RrTexture *texture;@@ -317,7 +315,6 @@ gulong RrColorPixel (const RrColor *c);
GC RrColorGC (RrColor *c); RrAppearance *RrAppearanceNew (const RrInstance *inst, gint numtex); -RrAppearance *RrAppearanceCopyShallow (RrAppearance *a); RrAppearance *RrAppearanceCopy (RrAppearance *a); void RrAppearanceFree (RrAppearance *a); void RrAppearanceRemoveTextures(RrAppearance *a);