On Tue, 10 Dec 2013 14:40:12 -0500 Michael Blumenkrantz
<michael.blumenkra...@gmail.com> said:

> ughhhh can we not do this? there's no point in adding them, and I thought
> this was an established thing in e

nope. not established. ;] it's a hard call to make. if you run out of memory -
what do you do? especialy when its a small snippet of memory to allocate.
bigger chunks is another matter. if you don't have enough memory to grab a few
dozen or even hundred bytes... you're in deep trouble. you can't really do
anything anymore. in general it is good form to check allocation results and
unwind safely. technically hash adds, list appends etc. may allocate. if they
fail you won't segv, but you may now being losing data.

> On Tue, Dec 10, 2013 at 2:37 PM, Sebastian Dransfeld
> <s...@tango.flipp.net>wrote:
> 
> > englebass pushed a commit to branch master.
> >
> >
> > http://git.enlightenment.org/core/enlightenment.git/commit/?id=ae8a067e6dd1d9e7035571dc7d260597505e776f
> >
> > commit ae8a067e6dd1d9e7035571dc7d260597505e776f
> > Author: Sebastian Dransfeld <s...@tango.flipp.net>
> > Date:   Tue Dec 10 20:37:17 2013 +0100
> >
> >     e: Check whether allocation succeeds
> >
> >     CID 1039865
> > ---
> >  src/bin/e_container.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/src/bin/e_container.c b/src/bin/e_container.c
> > index 636fef7..fc354af 100644
> > --- a/src/bin/e_container.c
> > +++ b/src/bin/e_container.c
> > @@ -339,6 +339,7 @@ e_container_shape_add(E_Container *con)
> >     E_OBJECT_TYPE_CHECK_RETURN(con, E_CONTAINER_TYPE, 0);
> >
> >     es = E_OBJECT_ALLOC(E_Container_Shape, E_CONTAINER_SHAPE_TYPE,
> > _e_container_shape_free);
> > +   if (!es) return NULL;
> >     E_OBJECT_DEL_SET(es, _e_container_shape_del);
> >     es->con = con;
> >     con->shapes = eina_list_append(con->shapes, es);
> >
> > --
> >
> >
> >
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT 
> organizations don't have a clear picture of how application performance 
> affects their revenue. With AppDynamics, you get 100% visibility into your 
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    ras...@rasterman.com


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to