On Mon, Aug 27, 2012 at 8:24 PM, Cedric BAIL <[email protected]> wrote:
> On Mon, Aug 27, 2012 at 9:34 PM, Enlightenment SVN
> <[email protected]> wrote:
>> Log:
>> emotion: free channels only if there's channel to free
>>   No need to free channels if there's no channels to be freed.
>>
>>   By: Leandro Dorileo <[email protected]>
>
> Shouldn't free(NULL) just work ?

free(NULL) works
free(GARBAGE), don't.

He's not checking if variable is null

-   free(ev->audio_channels);
+   if (ev->audio_channels_count) free(ev->audio_channels);

But, yeah, it doesn't look fix.
We'll commit a fix setting these points to NULL on the correct place.

Thanks

> --
> Cedric BAIL
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



-- 
Bruno Dilly
Senior Developer
ProFUSION embedded systems
http://profusion.mobi

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to