diff options
author | Chuck Atkins <[email protected]> | 2018-01-22 12:09:28 -0500 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2018-01-22 17:56:44 -0600 |
commit | a29d63ecf71546c4798c609e37810f0ec81793d8 (patch) | |
tree | 3b3a784fa47513dd284fd1f877bd8421841290bf /src/hgl/GLDispatcher.cpp | |
parent | 56b9060381a02e9e3545c7eda3c281034a7e9b10 (diff) |
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: Chuck Atkins <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Cc: Bruce Cherniak <[email protected]>
Cc: Tim Rowley <[email protected]>
cc: [email protected]
Diffstat (limited to 'src/hgl/GLDispatcher.cpp')
0 files changed, 0 insertions, 0 deletions