mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-07 07:23:18 +02:00
sample: Fix leak in Scribble sample when resizing the window
This commit is contained in:
parent
bc309f3093
commit
cf7aa5222e
@ -90,6 +90,10 @@ namespace GtkSamples {
|
||||
|
||||
protected override bool OnConfigureEvent (EventConfigure ev)
|
||||
{
|
||||
if (surface != null) {
|
||||
surface.Dispose ();
|
||||
}
|
||||
|
||||
surface = ev.Window.CreateSimilarSurface (Cairo.Content.Color, AllocatedWidth, AllocatedHeight);
|
||||
ClearSurface ();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user