Browse Source

Fix a few memory leaks

master
Michael Stapelberg 14 years ago
parent
commit
02655d2ddf
2 changed files with 5 additions and 0 deletions
  1. +3
    -0
      unlock_indicator.c
  2. +2
    -0
      xcb.c

+ 3
- 0
unlock_indicator.c View File

@ -145,6 +145,8 @@ xcb_pixmap_t draw_image(uint32_t *resolution) {
cairo_set_source(ctx, outer_pat);
cairo_stroke(ctx);
cairo_pattern_destroy(outer_pat);
/* Draw an inner seperator line. */
cairo_set_source_rgb(ctx, 0, 0, 0);
cairo_set_line_width(ctx, 2.0);
@ -228,6 +230,7 @@ xcb_pixmap_t draw_image(uint32_t *resolution) {
highlight_start + (M_PI / 3.0) /* start */,
(highlight_start + (M_PI / 3.0)) + (M_PI / 128.0) /* end */);
cairo_stroke(ctx);
cairo_pattern_destroy(outer_pat);
}
}


+ 2
- 0
xcb.c View File

@ -172,6 +172,8 @@ uint32_t get_mod_mask(xcb_connection_t *conn, xcb_key_symbols_t *symbols, uint32
}
}
free(modeswitchcodes);
free(modmap_r);
return 0;
}


Loading…
Cancel
Save