Change-Id: I3a42e7a803b5f87c8ec501bddf3b4e4cdf6f8364
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Eldbus_Message_Iter *array = NULL, *ec = NULL;
Window_Info_List *info_list = (Window_Info_List *)data;
Eina_Bool res = EINA_FALSE, animating = EINA_FALSE;
+ etWin *tw = NULL;
if (info_list == NULL)
goto finish;
while (eldbus_message_iter_get_and_next(array, 'r', &ec))
{
- etWin *tw = new etWin();
- if (!tw) continue;
+ try
+ {
+ tw = new etWin();
+ }
+ catch (std::bad_alloc &e)
+ {
+ ERR("Failed to allocate memory for etWin");
+ continue;
+ }
res = eldbus_message_iter_arguments_get(
ec,