]> git.cworth.org Git - fips/commit
Fix resource leaks when switching contexts.
authorCarl Worth <cworth@cworth.org>
Wed, 30 Oct 2013 21:35:21 +0000 (14:35 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 31 Oct 2013 23:26:11 +0000 (16:26 -0700)
commit402fa1d53531bd911eaacddca109d5d551ac7c2d
tree057dd517f9e52af173915a9b112c0554a9d2331c
parent9e6a41d89661ce7e983bac1b747755380604e447
Fix resource leaks when switching contexts.

Previously, fips was already freeing memory that it had allocated for
its own linked lists of outstanding queries when switching contexts.

In addition, in this commit, we also now call End on any active
timer-query/performance-monitor and then call Delete on all queries
for which we have not previously collected results.

This avoids leaks within the OpenGL implementation as it holds on to
results that fips will never ask for.
metrics.c