From: Sebastian Dröge Date: Sat, 24 Jul 2010 08:29:01 +0000 (+0200) Subject: examples: Destroy the cairo context after usage X-Git-Tag: RELEASE-0.10.25~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a978c1a03de638dd373a194cf0a523c3d4ad518b;p=platform%2Fupstream%2Fgst-plugins-good.git examples: Destroy the cairo context after usage --- 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)); }