add some null checks before monitor deletion to account for people still affected...
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 12 Dec 2012 12:34:49 +0000 (12:34 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 12 Dec 2012 12:34:49 +0000 (12:34 +0000)
SVN revision: 80757

src/bin/e_widget_filepreview.c
src/modules/fileman/e_fwin_nav.c

index 9214bdb..cfe7f9d 100644 (file)
@@ -964,7 +964,7 @@ _e_wid_fprev_cb_del(E_Widget_Data *wd, int type __UNUSED__, Eio_Monitor_Event *e
 {
    if (wd->monitor != ev->monitor) return ECORE_CALLBACK_RENEW;
    _e_wid_fprev_clear_widgets(wd);
-   eio_monitor_del(wd->monitor);
+   if (wd->monitor) eio_monitor_del(wd->monitor);
    wd->monitor = NULL;
    E_FREE_LIST(wd->handlers, ecore_event_handler_del);
    return ECORE_CALLBACK_RENEW;
index 7f72aa8..64d2e7a 100644 (file)
@@ -629,7 +629,7 @@ _box_button_free(Nav_Item *ni)
    e_box_unpack(ni->o);
    evas_object_del(ni->o);
    E_FREE_LIST(ni->handlers, ecore_event_handler_del);
-   eio_monitor_del(ni->monitor);
+   if (ni->monitor) eio_monitor_del(ni->monitor);
    eina_stringshare_del(ni->path);
    free(ni);
 }