Changeset 6211c76 for editwin.c


Ignore:
Timestamp:
Oct 24, 2009, 12:59:25 PM (12 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
4cc02605
Parents:
8590774
git-author:
David Benjamin <davidben@mit.edu> (10/19/09 20:03:36)
git-committer:
David Benjamin <davidben@mit.edu> (10/24/09 12:59:25)
Message:
Add owl_editwin_free

Properly disposes of an owl_editwin.

Signed-off-by: David Benjamin <davidben@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    rb644688 r6211c76  
    6969  memset(e, 0, sizeof(*e));
    7070  return e;
     71}
     72
     73void owl_editwin_free(owl_editwin *e)
     74{
     75  owl_free(e->buff);
     76  owl_free(e->killbuf);
     77  owl_free(e->command);
     78  /* just in case someone forgot to clean up */
     79  while (e->excursions) {
     80    oe_release_excursion(e, e->excursions);
     81  }
     82
     83  owl_free(e);
    7184}
    7285
Note: See TracChangeset for help on using the changeset viewer.