diff options
| author | Jon Ashburn <jon@lunarg.com> | 2015-06-04 15:30:58 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-06-18 10:18:20 -0600 |
| commit | be40a0ff07a09bea4cb67eb503eb9cba9da10524 (patch) | |
| tree | 9a603aeb62126c12078c638f8f375c30d02408be | |
| parent | 9e4ff10ead3cda563265f5e5298eb6e32a4b2819 (diff) | |
| download | usermoji-be40a0ff07a09bea4cb67eb503eb9cba9da10524.tar.xz | |
loader: Add error messages if layer libraries fail to load
| -rw-r--r-- | loader/loader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/loader/loader.c b/loader/loader.c index 2e538617..8000e309 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -825,6 +825,8 @@ void layer_lib_scan(void) len = strlen(libPaths); loader.layer_dirs = malloc(len+1); if (loader.layer_dirs == NULL) { + loader_log(VK_DBG_REPORT_WARN_BIT, 0, "Out of memory can't add layer directories"); + free(libPaths); return; } |
