wayland: Fix small leak of wl_registry on VADisplay

The struct wl_registry is created with wl_proxy_marshal_constructor()
while calling wl_display_get_registry() and must be freed wtih
wl_proxy_destroy() by calling wl_registry_destroy().

72 bytes in 1 blocks are definitely lost in loss record 6 of 10
   at 0x4C2EF35: calloc (in vgpreload_memcheck-amd64-linux.so)
   by 0x5FD7503: ??? (in libwayland-client.so.0.3.0)
   by 0x5FD7A26: wl_proxy_marshal_array_constructor_versioned
   by 0x5FD7D7B: wl_proxy_marshal_constructor
   by 0x10B096: wl_display_get_registry (wayland-client-protocol.h:966)
   by 0x10AD72: va_open_display_wayland (va_display_wayland.c:91)
   by 0x10A43B: va_open_display (va_display.c:154)
   by 0x109B0A: main (vainfo.c:107)

Signed-off-by: Victor Toso <victortoso@redhat.com>
1 file changed
tree: bd195d8f1071d6c5aed4a8faa6d91de6fae48540
  1. common/
  2. decode/
  3. encode/
  4. putsurface/
  5. test/
  6. vainfo/
  7. videoprocess/
  8. .travis.yml
  9. Android.mk
  10. autogen.sh
  11. configure.ac
  12. CONTRIBUTING.md
  13. COPYING
  14. INSTALL
  15. Makefile.am
  16. NEWS
  17. README.md
README.md

Stories in Ready Build Status Coverity Scan Build Status

#Libva-utils Project

libva-utils is a collection of utilities and examples to exercise VA-API in accordance with the libva project. --enable-tests (default = no) provides a suite of unit-tests based on Google Test Framework. A driver implementation is necessary to properly operate.

VA-API is an open-source library and API specification, which provides access to graphics hardware acceleration capabilities for video processing. It consists of a main library and driver-specific acceleration backends for each supported hardware vendor.

If you would like to contribute to libva, check our Contributing guide.

We also recommend taking a look at the ‘janitorial’ bugs in our list of open issues as these bugs can be solved without an extensive knowledge of libva-utils.

We would love to help you start contributing!

The libva-utils development team can be reached via our mailing list and on IRC in channel ##intel-media on Freenode.

We also use #Slack and host VAAPI Media Slack Team. You can signup by submitting your email address to our Slack Team invite page.

Slack complements our other means of communication. Pick the one that works best for you!