From c3470b0a1b03518e5f9952954d591dd31d2c6cab Mon Sep 17 00:00:00 2001 From: sebastid Date: Fri, 18 Feb 2005 10:29:18 +0000 Subject: [PATCH] Use macro. SVN revision: 13423 --- src/bin/e_desk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/e_desk.c b/src/bin/e_desk.c index 7935615..0b1a5ac 100644 --- a/src/bin/e_desk.c +++ b/src/bin/e_desk.c @@ -56,8 +56,7 @@ e_desk_name_set(E_Desk *desk, const char *name) { E_OBJECT_CHECK(desk); E_OBJECT_TYPE_CHECK(desk, E_DESK_TYPE); - if (desk->name) - free(desk->name); + E_FREE(desk->name); desk->name = strdup(name); } -- 2.7.4