mirror of
				https://github.com/Ryujinx/GtkSharp.git
				synced 2025-11-04 08:24:56 +00: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 a new issue