diff --git a/docs/example/main.c b/docs/example/main.c index ff99dab8..b35889c6 100644 --- a/docs/example/main.c +++ b/docs/example/main.c @@ -5,7 +5,6 @@ #include #include #include -#include // TODO: handle surface lost error @@ -959,7 +958,7 @@ bool init_renderer(struct state* state) { // queue infos uint32_t qfam_count; vkGetPhysicalDeviceQueueFamilyProperties(state->phdev, &qfam_count, NULL); - VkQueueFamilyProperties *qprops = calloc(sizeof(*qprops), qfam_count); + VkQueueFamilyProperties *qprops = calloc(qfam_count, sizeof(*qprops)); vkGetPhysicalDeviceQueueFamilyProperties(state->phdev, &qfam_count, qprops); uint32_t gfx_qfam = 0xFFFFFFFFu; // graphics queue family diff --git a/docs/valgrind.sup b/docs/valgrind.sup index 9ff6a344..8e225108 100644 --- a/docs/valgrind.sup +++ b/docs/valgrind.sup @@ -15,9 +15,9 @@ fun:dlclose } { - Ignore dlopen bug. + Ignore tracy leak. Memcheck:Leak ... - fun:tracy::SetThreadName + fun:tracy_malloc_fast ... } diff --git a/src/tracy/client/TracySysTrace.cpp b/src/tracy/client/TracySysTrace.cpp index f6584e85..b8362212 100644 --- a/src/tracy/client/TracySysTrace.cpp +++ b/src/tracy/client/TracySysTrace.cpp @@ -1326,7 +1326,7 @@ void SysTraceWorker( void* ptr ) while( activeNum > 0 ) { int sel = -1; - int selPos; + int selPos = 0; int64_t t0 = std::numeric_limits::max(); for( int i=0; i