s/free/FREE =)

SVN revision: 6060
This commit is contained in:
Christopher Rosendahl 2002-03-11 20:03:14 +00:00
parent 0591da01bb
commit 1675c75a63
9 changed files with 19 additions and 19 deletions

View File

@ -482,7 +482,7 @@ e_focus_in(Ecore_Event * ev)
{ {
ecore_button_ungrab(b->win.container, g->button, g->mods, ecore_button_ungrab(b->win.container, g->button, g->mods,
g->any_mod); g->any_mod);
free(g); FREE(g);
b->click_grab = NULL; b->click_grab = NULL;
} }
} }
@ -1142,7 +1142,7 @@ e_cb_border_mouse_down(E_Border * b, Ecore_Event * e)
g->any_mod); g->any_mod);
ecore_window_button_grab_auto_replay_set(b->win.main, ecore_window_button_grab_auto_replay_set(b->win.main,
NULL); NULL);
free(g); FREE(g);
b->grabs = evas_list_remove(b->grabs, g); b->grabs = evas_list_remove(b->grabs, g);
goto again; goto again;
} }
@ -2862,7 +2862,7 @@ e_border_adopt_children(Window win)
b->ignore_unmap = 2; b->ignore_unmap = 2;
} }
} }
free(wins); FREE(wins);
} }
D_RETURN; D_RETURN;

View File

@ -28,13 +28,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
/*
#undef DEBUG #define DEBUG
*/
#ifdef DEBUG #ifdef DEBUG
#define D(fmt, args...) printf(fmt, ## args); #define D(fmt, args...) printf(fmt, ## args); fflush(stdout);
#else #else
#define D(msg, args...) #define D(msg, args...)
#endif #endif

View File

@ -97,7 +97,7 @@ e_file_set_mime(E_File * f, char *base, char *mime)
* if (f->info.custom_icon) * if (f->info.custom_icon)
* { * {
* if (f->info.icon) * if (f->info.icon)
* free(f->info.icon); * FREE(f->info.icon);
* f->info.icon = strdup(f->info.custom_icon); * f->info.icon = strdup(f->info.custom_icon);
* evas_set_image_file(f->view->evas, f->obj.icon, f->info.custom_icon); * evas_set_image_file(f->view->evas, f->obj.icon, f->info.custom_icon);
* e_view_queue_resort(f->view); * e_view_queue_resort(f->view);
@ -150,7 +150,7 @@ e_file_set_link(E_File * f, char *link)
{ {
if ((f->info.link) && (!strcmp(f->info.link, link))) if ((f->info.link) && (!strcmp(f->info.link, link)))
{ {
free(f->info.link); FREE(f->info.link);
f->info.link = strdup(link); f->info.link = strdup(link);
/* effect changes here */ /* effect changes here */
} }

View File

@ -215,7 +215,7 @@ e_entry_move_cb(void *_data, Evas _e, Evas_Object _o, int _b, int _x, int _y)
if (entry->selection_win) if (entry->selection_win)
ecore_window_destroy(entry->selection_win); ecore_window_destroy(entry->selection_win);
entry->selection_win = ecore_selection_set(str2); entry->selection_win = ecore_selection_set(str2);
free(str2); FREE(str2);
} }
} }
e_entry_configure(entry); e_entry_configure(entry);
@ -571,7 +571,7 @@ e_entry_handle_keypress(E_Entry * entry, Ecore_Event_Key_Down * e)
e_strdup(str2, e_entry_get_text(entry)); e_strdup(str2, e_entry_get_text(entry));
str2[entry->cursor_pos] = 0; str2[entry->cursor_pos] = 0;
e_entry_set_text(entry, str2); e_entry_set_text(entry, str2);
free(str2); FREE(str2);
} }
else if ((strlen(type) == 1) && (type[0] == 0x06)) /* ctrl+f */ else if ((strlen(type) == 1) && (type[0] == 0x06)) /* ctrl+f */
{ {
@ -993,7 +993,7 @@ e_entry_insert_text(E_Entry * entry, char *text)
strcat(str2, text); strcat(str2, text);
strcat(str2, &(entry->buffer[entry->cursor_pos])); strcat(str2, &(entry->buffer[entry->cursor_pos]));
e_entry_set_text(entry, str2); e_entry_set_text(entry, str2);
free(str2); FREE(str2);
entry->cursor_pos += strlen(text); entry->cursor_pos += strlen(text);
e_entry_configure(entry); e_entry_configure(entry);
@ -1016,7 +1016,7 @@ e_entry_clear_selection(E_Entry * entry)
strcpy(&(str2[entry->select.start]), strcpy(&(str2[entry->select.start]),
&(entry->buffer[entry->select.start + entry->select.length])); &(entry->buffer[entry->select.start + entry->select.length]));
e_entry_set_text(entry, str2); e_entry_set_text(entry, str2);
free(str2); FREE(str2);
entry->cursor_pos = entry->select.start; entry->cursor_pos = entry->select.start;
entry->select.start = -1; entry->select.start = -1;
} }
@ -1051,7 +1051,7 @@ e_entry_delete_to_right(E_Entry * entry)
e_strdup(str2, e_entry_get_text(entry)); e_strdup(str2, e_entry_get_text(entry));
strcpy(&(str2[entry->cursor_pos]), &(entry->buffer[entry->cursor_pos + 1])); strcpy(&(str2[entry->cursor_pos]), &(entry->buffer[entry->cursor_pos + 1]));
e_entry_set_text(entry, str2); e_entry_set_text(entry, str2);
free(str2); FREE(str2);
e_entry_configure(entry); e_entry_configure(entry);
D_RETURN; D_RETURN;

View File

@ -536,7 +536,7 @@ e_epplet_cb_cleanup(E_Epplet_CB_Info * cb)
cb->data2->refcount--; cb->data2->refcount--;
cb->data2 = NULL; cb->data2 = NULL;
} }
free(cb); FREE(cb);
#endif #endif
} }

View File

@ -1371,7 +1371,7 @@ e_menu_del_item(E_Menu * m, E_Menu_Item * mi)
IF_FREE(mi->icon); IF_FREE(mi->icon);
if (mi->menu->selected == mi) if (mi->menu->selected == mi)
mi->menu->selected = NULL; mi->menu->selected = NULL;
free(mi); FREE(mi);
mi->menu = NULL; mi->menu = NULL;
D_RETURN; D_RETURN;

View File

@ -339,7 +339,7 @@ e_build_menu_gnome_apps_build_dir(E_Build_Menu * bm, char *dir)
if (!have_it) if (!have_it)
entries = evas_list_append(entries, strdup(s)); entries = evas_list_append(entries, strdup(s));
} }
free(s); FREE(s);
} }
if (dirlist) if (dirlist)
evas_list_free(dirlist); evas_list_free(dirlist);

View File

@ -24,7 +24,7 @@ e_object_cleanup(E_Object * obj)
if (!obj) if (!obj)
D_RETURN; D_RETURN;
free(obj); FREE(obj);
D_RETURN; D_RETURN;
} }

View File

@ -1429,7 +1429,7 @@ e_view_resort_alphabetical(E_View * v)
qsort(array, count, sizeof(E_Icon *), e_view_restart_alphabetical_qsort_cb); qsort(array, count, sizeof(E_Icon *), e_view_restart_alphabetical_qsort_cb);
for (i = 0; i < count; i++) for (i = 0; i < count; i++)
icons = evas_list_append(icons, array[i]); icons = evas_list_append(icons, array[i]);
free(array); FREE(array);
evas_list_free(v->icons); evas_list_free(v->icons);
v->icons = icons; v->icons = icons;