修改Graph_Create函数

Graph_Create函数在释放graph后,会对graph进行初始化,避免使用已经销毁的互斥锁。
This commit is contained in:
Liu Chao
2013-05-12 16:01:12 +08:00
parent b9b55d5bf3
commit 26ede184db
+2 -1
View File
@@ -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 );