Changeset 4c0ac34


Ignore:
Timestamp:
Oct 23, 2010, 4:40:24 AM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
7d7326c
Parents:
c366cbd
Message:
Don't leak editwins in the viewwin

All the objects we pass the editwin to take a reference, but no one
ever claims the reference it was initially created with.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • viewwin.c

    r09065ed r4c0ac34  
    217217  owl_editwin_set_callback(tw, owl_viewwin_callback_search);
    218218  owl_editwin_set_cbdata(tw, data, owl_free);
     219  /* We aren't saving tw, so release the reference we were given. */
     220  owl_editwin_unref(tw);
    219221  return NULL;
    220222}
     
    236238  owl_global_push_context_obj(&g, ctx);
    237239  owl_editwin_set_callback(tw, owl_callback_command);
     240  /* We aren't saving tw, so release the reference we were given. */
     241  owl_editwin_unref(tw);
    238242
    239243  return NULL;
Note: See TracChangeset for help on using the changeset viewer.