File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -876,7 +876,7 @@ LCUI_Widget LCUIWidget_GetFocus(void)
876876int LCUIWidget_SetFocus (LCUI_Widget widget )
877877{
878878 LCUI_Widget w ;
879- LCUI_WidgetEventRec ev ;
879+ LCUI_WidgetEventRec ev = { 0 } ;
880880
881881 for (w = widget ; w ; w = w -> parent ) {
882882 if (Widget_Focusable (w )) {
Original file line number Diff line number Diff line change @@ -238,7 +238,9 @@ static void X11Surface_ClearTasks(LCUI_Surface surface)
238238static void OnDestroySurface (void * data )
239239{
240240 LCUI_Surface s = data ;
241+
241242 X11Surface_ClearTasks (s );
243+ LinkedList_Clear (& s -> rects , free );
242244 if (s -> ximage ) {
243245 XDestroyImage (s -> ximage );
244246 }
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ int BuildContentViewFromXML(void)
100100void test_scrollbar (void )
101101{
102102 float left , top ;
103- LCUI_SysEventRec e ;
103+ LCUI_SysEventRec e = { 0 } ;
104104 LCUI_Widget content ;
105105
106106 LCUI_Init ();
You can’t perform that action at this time.
0 commit comments