forked from enlightenment/efl
Ecore_Win32: do not allocate data as it is useless. Fix memory leak.
@fix
This commit is contained in:
parent
b7c20a9ee3
commit
3d531fba1e
|
@ -44,11 +44,11 @@ _ecore_win32_window_procedure(HWND window,
|
||||||
WPARAM window_param,
|
WPARAM window_param,
|
||||||
LPARAM data_param)
|
LPARAM data_param)
|
||||||
{
|
{
|
||||||
|
Ecore_Win32_Callback_Data _data;
|
||||||
Ecore_Win32_Callback_Data *data;
|
Ecore_Win32_Callback_Data *data;
|
||||||
DWORD coord;
|
DWORD coord;
|
||||||
|
|
||||||
data = (Ecore_Win32_Callback_Data *)malloc(sizeof(Ecore_Win32_Callback_Data));
|
data = &_data;
|
||||||
if (!data) return DefWindowProc(window, message, window_param, data_param);
|
|
||||||
|
|
||||||
data->window = window;
|
data->window = window;
|
||||||
data->message = message;
|
data->message = message;
|
||||||
|
|
Loading…
Reference in New Issue