Skip to content

[FIX] Fix memory leaks in GBufferTest #564

@Miou-zora

Description

@Miou-zora

Bug Description

Memory leak(s) have been detected in the GBufferTest test suite. These leaks must be identified, root-caused, and fixed to ensure the test passes cleanly under memory checking tools (e.g. Valgrind, AddressSanitizer).

Steps to Reproduce

  1. Build the project with memory checking enabled (e.g. AddressSanitizer or Valgrind).
  2. Run the GBufferTest test suite.
  3. Observe memory leak reports in the output.

Expected Behavior

GBufferTest runs to completion with no memory leaks reported.

Actual Behavior

One or more memory leaks are reported when running GBufferTest under a memory checker.

Environment

  • OS: [e.g. Ubuntu 22.04]
  • Compiler: [e.g. Clang 15]
  • Vulkan SDK Version: [e.g. 1.3.268.0]
  • Engine² Version/Commit: [current main]

Additional Context

This fix is a prerequisite for making the memory leak check mandatory in CI.

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingrefactorCode Refactor

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions