[prev in list] [next in list] [prev in thread] [next in thread]
List: ggi-develop
Subject: Re: ggi_malloc and friends [PATCH]
From: Christoph_Egger () t-online ! de (Christoph Egger)
Date: 2000-10-31 18:19:20
[Download RAW message or body]
On Tue, 31 Oct 2000, Martin Schulze wrote:
> Patch the Patch:
>
> diff -r degas-old/lib/libggi/display/vcsa/visual.c
> degas/lib/libggi/display/vcsa/visual.c
> 103a104,114
> > priv = LIBGGI_PRIVATE(vis) = malloc(sizeof(ggi_vcsa_priv));
> > if(priv == NULL)
> > return GGI_ENOMEM;
> >
> > LIBGGI_GC(vis) = malloc(sizeof(ggi_gc));
> > if(priv == NULL){ <--------- if( LIBGGI_GC(vis) == NULL )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Does that compile?
> > free(priv);
> > return GGI_ENOMEM;
> > }
>
> CU Martin
>
Christoph Egger
E-Mail: Christoph_Egger@t-online.de
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic