Use E_FREE for _xdnd, created with E_NEW.

SVN revision: 40836
This commit is contained in:
Christopher Michael 2009-05-26 16:02:49 +00:00
parent 7c78ec900e
commit 15bfce009e
1 changed files with 4 additions and 6 deletions

View File

@ -1267,8 +1267,7 @@ _e_dnd_cb_event_dnd_leave(void *data, int type, void *event)
}
eina_stringshare_del(_xdnd->type);
free(_xdnd);
_xdnd = NULL;
E_FREE(_xdnd);
}
return 1;
}
@ -1411,7 +1410,7 @@ _e_dnd_cb_event_dnd_selection(void *data, int type, void *event)
Eina_List *l = NULL;
char file[PATH_MAX];
char *text;
int i, size;
int size;
data = ev->data;
text = (char *)data->data;
@ -1449,7 +1448,6 @@ _e_dnd_cb_event_dnd_selection(void *data, int type, void *event)
* the drop property... */
ecore_x_dnd_send_finished();
eina_stringshare_del(_xdnd->type);
free(_xdnd);
_xdnd = NULL;
E_FREE(_xdnd);
return 1;
}