On 2018-05-11 10:23 AM, Michel Dänzer wrote: > On 2018-05-10 05:09 PM, Adam Jackson wrote: >> On Wed, 2018-05-09 at 18:17 +0200, Michel Dänzer wrote: >> >>> How about the idea I described before, saving the loader_dri3_drawable >>> values in a hash table in dri3_screen? Maybe we could simply save a >>> pointer to the whole struct, after only freeing the renderbuffers. >> >> That would also leak, less in absolute terms but the same big-O, for >> the same reasons. > > Sure, but with the same number x of leaked objects, there's a difference > between leaking x times tens of bytes, or x times potentially megabytes.
Also, if we wanted to get fancy, we could periodically (in a thread?) iterate over the hash table entries and check if the windows still exist. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev