efreet efreet_mime.c: Changes in efreet_mime_shutdown. Decrementing init counter below 0 issue solved. Patch by Zbigniew Kosinski z.kosinski@samsung.com

On Thu, Sep 20, 2012 at 8:06 PM, Zbigniew Kosinski <z.kosinski@samsung.com> wrote:
> Hello,
>
> Right now efreet_shutdown function doesn't return values below 0.
>
> In my opinion,  efreet_mime_shutdown function should behave in the same way
> as efreet_shutdown.
>
> I have prepared patch proposal to prevent decrementing init counter below 0.
>
> Please take a look at attached file.
>
> BR,
>
> Zbigniew Kosinski

SVN revision: 76921
This commit is contained in:
Daniel Juyung Seo 2012-09-20 23:33:32 +00:00
parent 33e20cf2a0
commit be7b396171
1 changed files with 5 additions and 0 deletions

View File

@ -237,6 +237,11 @@ shutdown_ecore:
EAPI int
efreet_mime_shutdown(void)
{
if (_efreet_mime_init_count <= 0)
{
EINA_LOG_ERR("Init count not greater than 0 in shutdown.");
return 0;
}
if (--_efreet_mime_init_count != 0)
return _efreet_mime_init_count;