mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
examples: Destroy the cairo context after usage
This commit is contained in:
parent
d1754f05c4
commit
a978c1a03d
3 changed files with 6 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue