Andy Ross wrote:
Erik Hofman wrote:

Since FlightGear is linked to libGL at link time, the number of
dlclose calls would always be one less than the number of dlopen

In which case the dlclose() is 100% guaranteed to be a noop anyway and
can be safely removed. :)

Seriously: consider the case where this symbol came out of a library
that we *don't* link to statically.

Why would I?

Then this would undeniably be a
bug, because the library would be unmapped before the function could
be called. Honestly, this code is just wrong.

No it's not. I can't see a case where a program that relies so heavily on OpenGL wouldn't link to the GL library at link time.


Flightgear-devel mailing list

Reply via email to