summaryrefslogtreecommitdiff
path: root/src/lib/ecore_win32
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2015-07-23 17:47:28 +0200
committerTom Hacohen <tom@stosb.com>2015-07-23 16:51:06 +0100
commit3d531fba1e747e71904ab71200462caea0835892 (patch)
treefe92c77edb833ecc7340927ca978748f95737fbf /src/lib/ecore_win32
parentb7c20a9ee37a3a09a66603adac34cc6a177f963d (diff)
Ecore_Win32: do not allocate data as it is useless. Fix memory leak.
@fix
Diffstat (limited to 'src/lib/ecore_win32')
-rw-r--r--src/lib/ecore_win32/ecore_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_win32/ecore_win32.c b/src/lib/ecore_win32/ecore_win32.c
index 411c2f0eb8..37b79565b4 100644
--- a/src/lib/ecore_win32/ecore_win32.c
+++ b/src/lib/ecore_win32/ecore_win32.c
@@ -44,11 +44,11 @@ _ecore_win32_window_procedure(HWND window,
44 WPARAM window_param, 44 WPARAM window_param,
45 LPARAM data_param) 45 LPARAM data_param)
46{ 46{
47 Ecore_Win32_Callback_Data _data;
47 Ecore_Win32_Callback_Data *data; 48 Ecore_Win32_Callback_Data *data;
48 DWORD coord; 49 DWORD coord;
49 50
50 data = (Ecore_Win32_Callback_Data *)malloc(sizeof(Ecore_Win32_Callback_Data)); 51 data = &_data;
51 if (!data) return DefWindowProc(window, message, window_param, data_param);
52 52
53 data->window = window; 53 data->window = window;
54 data->message = message; 54 data->message = message;