diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 16:07:46 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-23 16:07:46 +0000 |
commit | 4e474231c1e813aee06704812685b1e74110bc91 (patch) | |
tree | 900e932be19f20ea89e1ed7f4970440f27502411 /gpu/command_buffer/service/common_decoder_unittest.cc | |
parent | 7cadb41e59cf41cec77ad58b4fe2b96fb0a65ded (diff) | |
download | chromium_src-4e474231c1e813aee06704812685b1e74110bc91.zip chromium_src-4e474231c1e813aee06704812685b1e74110bc91.tar.gz chromium_src-4e474231c1e813aee06704812685b1e74110bc91.tar.bz2 |
Fix bug in shader and program managers.
The bug was that the code would search by id instead of by pointer.
This meant it was possible to free the wrong thing (ie, pass in
an info with id=4 and free a different info that also happened
to have id=4). This was most likely to happen when calling
MarkAsDeleted since MarkAsDelete sets the id to 0.
TEST=unit tests
BUG=75629
R=apatrick@chromium.org
Review URL: http://codereview.chromium.org/6721010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/common_decoder_unittest.cc')
0 files changed, 0 insertions, 0 deletions