summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-09-20 23:33:32 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-09-20 23:33:32 +0000
commitbe7b396171610f7dfe95b71654547aa40fd53916 (patch)
tree6e3f9f94f60709464540847d7ffa4295baf72cd6 /legacy/efreet
parent33e20cf2a0f830b42a8a6b8d0dbeedaae4c13086 (diff)
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
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/lib/efreet_mime.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/legacy/efreet/src/lib/efreet_mime.c b/legacy/efreet/src/lib/efreet_mime.c
index 9343d90f9f..12bad3f9fd 100644
--- a/legacy/efreet/src/lib/efreet_mime.c
+++ b/legacy/efreet/src/lib/efreet_mime.c
@@ -237,6 +237,11 @@ shutdown_ecore:
237EAPI int 237EAPI int
238efreet_mime_shutdown(void) 238efreet_mime_shutdown(void)
239{ 239{
240 if (_efreet_mime_init_count <= 0)
241 {
242 EINA_LOG_ERR("Init count not greater than 0 in shutdown.");
243 return 0;
244 }
240 if (--_efreet_mime_init_count != 0) 245 if (--_efreet_mime_init_count != 0)
241 return _efreet_mime_init_count; 246 return _efreet_mime_init_count;
242 247