diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-07-24 10:29:01 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-07-24 10:29:01 +0200 |
commit | a978c1a03de638dd373a194cf0a523c3d4ad518b (patch) | |
tree | 11501ab00f7f0ee1f70411dd7121ca67734d3082 /tests | |
parent | d1754f05c4affea54f0d9b4361c4ecc491778529 (diff) |
examples: Destroy the cairo context after usage
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/equalizer/demo.c | 2 | ||||
-rw-r--r-- | tests/examples/spectrum/demo-audiotest.c | 2 | ||||
-rw-r--r-- | tests/examples/spectrum/demo-osssrc.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/examples/equalizer/demo.c b/tests/examples/equalizer/demo.c index c53490412..cd822499f 100644 --- a/tests/examples/equalizer/demo.c +++ b/tests/examples/equalizer/demo.c @@ -95,6 +95,8 @@ draw_spectrum (gfloat * data) cairo_rectangle (cr, i, -data[i], 1, spect_height + data[i]); cairo_fill (cr); } + cairo_destroy (cr); + gdk_window_end_paint (gtk_widget_get_window (drawingarea)); } diff --git a/tests/examples/spectrum/demo-audiotest.c b/tests/examples/spectrum/demo-audiotest.c index 6cc7b9458..9e843e365 100644 --- a/tests/examples/spectrum/demo-audiotest.c +++ b/tests/examples/spectrum/demo-audiotest.c @@ -94,6 +94,8 @@ draw_spectrum (gfloat * data) cairo_rectangle (cr, i, -data[i], 1, spect_height + data[i]); cairo_fill (cr); } + cairo_destroy (cr); + gdk_window_end_paint (gtk_widget_get_window (drawingarea)); } diff --git a/tests/examples/spectrum/demo-osssrc.c b/tests/examples/spectrum/demo-osssrc.c index 72401f8df..84ecb2d93 100644 --- a/tests/examples/spectrum/demo-osssrc.c +++ b/tests/examples/spectrum/demo-osssrc.c @@ -83,6 +83,8 @@ draw_spectrum (gfloat * data) cairo_rectangle (cr, i, -data[i], 1, spect_height + data[i]); cairo_fill (cr); } + cairo_destroy (cr); + gdk_window_end_paint (gtk_widget_get_window (drawingarea)); } |