commit | ad669b04f4633957eea55b8ad2d8253adcefe39b | [log] [tgz] |
---|---|---|
author | Jamie Gennis <jgennis@google.com> | Fri Apr 05 16:41:27 2013 -0700 |
committer | Jamie Gennis <jgennis@google.com> | Mon Apr 08 14:42:22 2013 -0700 |
tree | 280e1d04fdc8ef6483574379114175ae4bf98232 | |
parent | 83a3ad4d579b514dfeff43008254d05922e5e324 [diff] |
libgui: fix an EGLImage leak This moves the call to ConsumerBase::abandon from the ConsumerBase dtor to ConsumerBase::onLastStrongRef. The abandon call relies on virtual methods to perform the clean-up, so calling it from the ConsumerBase dtor after the derived classes dtors ran was skipping some of the clean-up. The onLastStrongRef method should get called just before the most derived class's dtor gets called. Bug: 8349135 Change-Id: I836946826927cc1ed69c049049f525f92b17a269