efm - handle cancel of async eio if icon is freed and eio still active
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 28 Sep 2015 07:29:12 +0000 (16:29 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 28 Sep 2015 07:29:12 +0000 (16:29 +0900)
@fix

src/bin/e_fm.c

index 45f409b..8cf276b 100644 (file)
@@ -4797,6 +4797,11 @@ _e_fm2_icon_free(E_Fm2_Icon *ic)
 {
    if (ic->queued) abort();
    if (ic->inserted) abort();
+   if (ic->eio)
+     {
+        eio_file_cancel(ic->eio);
+        ic->eio = NULL;
+     }
    /* free icon, object data etc. etc. */
    if (ic->sd->last_placed == ic)
      {