nuke password contents on del

SVN revision: 29633
This commit is contained in:
rephorm 2007-04-22 03:50:44 +00:00 committed by rephorm
parent 6fad95e77e
commit b1841d3265
1 changed files with 3 additions and 0 deletions

View File

@ -1179,6 +1179,9 @@ _e_editable_smart_del(Evas_Object *object)
evas_object_del(sd->text_object);
evas_object_del(sd->cursor_object);
evas_object_del(sd->selection_object);
/* Security - clear out memory that contained a password */
if (sd->password_mode)
memset(sd->text, 0, strlen(sd->text));
free(sd->text);
free(sd);