Since we use ecore, we must initilize it.

Problem: ecore reference count can drop to zero before
_ecore_evas_async_events_fd is deleted, ecore_shtudown() will finish
all fd handlers and then we would delete a now invalid pointer.



SVN revision: 36055
This commit is contained in:
Gustavo Sverzut Barbieri 2008-09-17 17:19:20 +00:00
parent 96bfcc0395
commit 6956e1057b
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,7 @@ ecore_evas_init(void)
int fd;
evas_init ();
ecore_init();
fd = evas_async_events_fd_get();
if (fd > 0)
@ -182,6 +183,7 @@ ecore_evas_shutdown(void)
if (_ecore_evas_async_events_fd)
ecore_main_fd_handler_del(_ecore_evas_async_events_fd);
ecore_shutdown();
evas_shutdown();
}
if (_ecore_evas_init_count < 0) _ecore_evas_init_count = 0;