Re: [PATCH v2 05/10] ui/gtk-gl-area: Plug memleak in gd_gl_area_create_context()

2020-08-31 Thread Gerd Hoffmann
On Mon, Aug 31, 2020 at 09:43:10AM -0400, Pan Nengyuan wrote: > Receiving error in local variable err, and forgot to free it. > This patch check the return value of 'gdk_window_create_gl_context' > and 'gdk_gl_context_realize', then free err to fix it. > > Reported-by: Euler Robot > Signed-off-by

[PATCH v2 05/10] ui/gtk-gl-area: Plug memleak in gd_gl_area_create_context()

2020-08-31 Thread Pan Nengyuan
Receiving error in local variable err, and forgot to free it. This patch check the return value of 'gdk_window_create_gl_context' and 'gdk_gl_context_realize', then free err to fix it. Reported-by: Euler Robot Signed-off-by: Pan Nengyuan --- Cc: Gerd Hoffmann --- V2->V1: check the return value