[Mesa-dev] Avoid segfault in omx deconstructor
StDenis, Tom
Tom.StDenis at amd.com
Tue Nov 3 10:03:51 PST 2015
If the constructor fails before the lists are initialized the deconstructor will fail.
This patch is a bit of a kludge fix to just avoid the undefined behaviour. The real fix down the road would be to avoid calling the deconstructor if the constructor failed at all.
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151103/cae3ddfb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Avoid-segfault-in-deconstructor-if-constructor-fails.patch
Type: text/x-patch
Size: 1031 bytes
Desc: 0001-Avoid-segfault-in-deconstructor-if-constructor-fails.patch
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20151103/cae3ddfb/attachment.bin>
More information about the mesa-dev
mailing list