Changeset 8721756 for popexec.c


Ignore:
Timestamp:
Mar 17, 2004, 11:42:13 PM (21 years ago)
Author:
Erik Nygren <nygren@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1bb1e67
Parents:
d4b84c0
Message:
oops.  make sure to null out reference to viewwin close hook after running it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • popexec.c

    rafbf668 r8721756  
    111111  if (pe->rfd<0 && !pe->pid && !pe->winactive) {
    112112    owl_muxevents_remove(owl_global_get_muxevents(&g), handle);
     113    owl_function_debugmsg("unref of %p from input handler at A", pe);
    113114    owl_popexec_unref(pe);
    114115    return;
     
    133134    }
    134135    owl_muxevents_remove(owl_global_get_muxevents(&g), handle);
     136    owl_function_debugmsg("unref of %p from input handler at B", pe);
    135137    owl_popexec_unref(pe);
    136138    return;
     
    180182    pe->pid = 0;
    181183  }
     184  owl_function_debugmsg("unref of %p from onclose", pe);
    182185  owl_popexec_unref(pe);
    183186}
    184187
    185188void owl_popexec_unref(owl_popexec *pe) {
     189  owl_function_debugmsg("unref of %p was %d", pe, pe->refcount);
    186190  pe->refcount--;
    187191  if (pe->refcount<=0) {
     192    owl_function_debugmsg("doing free of %p", pe);
    188193    owl_free(pe);
    189194  }
Note: See TracChangeset for help on using the changeset viewer.