From 26ede184db163af8ca2d756fdcefc2be541b2a19 Mon Sep 17 00:00:00 2001 From: Liu Chao Date: Sun, 12 May 2013 16:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9Graph=5FCreate=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Graph_Create函数在释放graph后,会对graph进行初始化,避免使用已经销毁的互斥锁。 --- src/LCUI_Graph.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LCUI_Graph.c b/src/LCUI_Graph.c index 06578f3f..764b2c61 100755 --- a/src/LCUI_Graph.c +++ b/src/LCUI_Graph.c @@ -405,7 +405,8 @@ Graph_Create( LCUI_Graph *graph, int width, int height ) graph->height = height; return 0; } - Graph_Free( graph ); + Graph_Free( graph ); + Graph_Init( graph ); } graph->mem_size = (size_t)width*height; graph->rgba = New_Graph( width, height, graph->have_alpha );