Skip to content
Snippets Groups Projects
Commit a29d63ec authored by Chuck Atkins's avatar Chuck Atkins Committed by George Kyriazis
Browse files

swr: refactor swr_create_screen to allow for proper cleanup on error


This makes the following changes to address cleanup issues:
- Error conditions now return NULL instead of calling exit()
- swr_creen is now freed upon error, rather than leak.
- Library handle from dlopen is now closed upon swr_screen destruction

v2: Added additional context in commit msg and remove unnecessary "PUBLIC"
v3: Fix typo in commit message.

Signed-off-by: default avatarChuck Atkins <chuck.atkins@kitware.com>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
Cc: Bruce Cherniak <bruce.cherniak@intel.com>
Cc: Tim Rowley <timothy.o.rowley@intel.com>
cc: mesa-stable@lists.freedesktop.org
parent 56b90603
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment