[PATCH 00/10] fix cppcheck and compiler warnings

Martin Olsson martin at minimum.se
Sat Jul 7 18:03:37 PDT 2012


These patches silence some issues found by the cppcheck
static analyzer, and it also fixes two compiler warnings.

Martin Olsson (10):
  clients: Add clients/weston-screensaver to clients/.gitignore
  clients: Free resources on exit in eventdemo
  clients: Don't leak "menu" on error path in clients/window.c
  shared: Don't leak file descriptor in shared/image-loader.c
  compositor-android: Add proper error handling in
    android_compositor_create()
  compositor-wayland: Add error handling in wayland_compositor_create()
  compositor-x11: Add error handling in x11_compositor_create()
  xwayland: Don't leak fd while reading lock file in
    src/xwayland/launcher.c
  wcap: Plug memory leak in wcap_decoder_create()
  clients: Silence 2x gcc 4.6.3 "warn_unused_result" compiler warnings

 clients/.gitignore       |    1 +
 clients/desktop-shell.c  |    3 ++-
 clients/eventdemo.c      |   13 +++++++++++++
 clients/window.c         |    7 +++++--
 shared/image-loader.c    |    4 +++-
 src/compositor-android.c |   22 +++++++++++++++-------
 src/compositor-wayland.c |   22 +++++++++++++++-------
 src/compositor-x11.c     |   24 +++++++++++++++++-------
 src/xwayland/launcher.c  |    1 +
 wcap/wcap-decode.c       |    4 +++-
 10 files changed, 75 insertions(+), 26 deletions(-)

-- 
1.7.9.5



More information about the wayland-devel mailing list