Changeset 5f7eadf


Ignore:
Timestamp:
May 29, 2010, 1:14:57 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
4e33cb2
Parents:
c447d9c
git-author:
David Benjamin <davidben@mit.edu> (05/27/10 12:13:33)
git-committer:
David Benjamin <davidben@mit.edu> (05/29/10 13:14:57)
Message:
Don't leave a sketchy pointer to the viewwin's window

We really should just reallocate those structures each time.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r89ce405 r5f7eadf  
    28002800void owl_command_popless_quit(owl_viewwin *vw)
    28012801{
     2802  owl_viewwin_cleanup(vw);
    28022803  owl_popwin_close(owl_global_get_popwin(&g));
    28032804  owl_global_pop_context(&g);
    2804   owl_viewwin_cleanup(vw);
    28052805  owl_global_set_needrefresh(&g);
    28062806}
  • viewwin.c

    rc447d9c r5f7eadf  
    168168void owl_viewwin_cleanup(owl_viewwin *v)
    169169{
     170  owl_viewwin_set_window(v, NULL);
    170171  if (v->onclose_hook) {
    171172    v->onclose_hook(v, v->onclose_hook_data);
Note: See TracChangeset for help on using the changeset viewer.