Skip to content
Commit 287b3f17 authored by Chirag Khurana's avatar Chirag Khurana Committed by Marius Vlad
Browse files

clients: simple-im: handle proper destruction of objects

Add signal handler for SIGINT to enable graceful exit and
release allocated memory. This resolves the memory leak
observed with Valgrind:

  LEAK SUMMARY:
    definitely lost: 2,520 bytes in 2 blocks
    indirectly lost: 16,820 bytes in 11 blocks
      possibly lost: 0 bytes in 0 blocks
    still reachable: 0 bytes in 0 blocks
         suppressed: 0 bytes in 0 blocks

Fixes: wayland/weston#872



Signed-off-by: default avatarChirag Khurana <quic_ckhurana@quicinc.com>
parent b2e6a643
Pipeline #1187036 passed with stages
in 7 minutes and 44 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment