mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	Fix bug: memory leak.
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
				
			|||||||
User johns
 | 
					User johns
 | 
				
			||||||
Date:
 | 
					Date:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Fix bug: memory leak.
 | 
				
			||||||
    PIP close clears the last used PIP channel.
 | 
					    PIP close clears the last used PIP channel.
 | 
				
			||||||
    Fix bug: -DOSD_DEBUG uses old (deleted) variable.
 | 
					    Fix bug: -DOSD_DEBUG uses old (deleted) variable.
 | 
				
			||||||
    Fix bug: Option softhddevice.BlackPicture has no effect.
 | 
					    Fix bug: Option softhddevice.BlackPicture has no effect.
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										4
									
								
								video.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								video.c
									
									
									
									
									
								
							@@ -912,13 +912,13 @@ static void GlxOsdClear(void)
 | 
				
			|||||||
    // FIXME: if not; use zero buffer
 | 
					    // FIXME: if not; use zero buffer
 | 
				
			||||||
    // FIXME: if not; use dirty area
 | 
					    // FIXME: if not; use dirty area
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    texbuf = calloc(OsdWidth * OsdHeight, 4);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    // set glx context
 | 
					    // set glx context
 | 
				
			||||||
    if (!glXMakeCurrent(XlibDisplay, VideoWindow, GlxContext)) {
 | 
					    if (!glXMakeCurrent(XlibDisplay, VideoWindow, GlxContext)) {
 | 
				
			||||||
	Error(_("video/glx: can't make glx context current\n"));
 | 
						Error(_("video/glx: can't make glx context current\n"));
 | 
				
			||||||
	return;
 | 
						return;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    texbuf = calloc(OsdWidth * OsdHeight, 4);
 | 
				
			||||||
    GlxUploadOsdTexture(0, 0, OsdWidth, OsdHeight, texbuf);
 | 
					    GlxUploadOsdTexture(0, 0, OsdWidth, OsdHeight, texbuf);
 | 
				
			||||||
    glXMakeCurrent(XlibDisplay, None, NULL);
 | 
					    glXMakeCurrent(XlibDisplay, None, NULL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user