Make the pipe closing work all of the time (so far), memory leak fixes.
This commit is contained in:
@@ -167,8 +167,15 @@ struct _Check_Data
|
||||
{
|
||||
unsigned int checked;
|
||||
};
|
||||
static void
|
||||
_check_del(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
||||
{
|
||||
Check_Data *cd;
|
||||
cd = evas_object_data_get(data, "cd");
|
||||
FREE(cd);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
_check_toggle_cb_call(void *data, Evas_Object *obj, const char *emission,
|
||||
const char *source)
|
||||
{
|
||||
@@ -197,6 +204,7 @@ ecdb_check_add(Evas_Object *parent, const char *name)
|
||||
edje_object_file_set(c, em->theme_path, "ecdb/check");
|
||||
edje_object_signal_callback_add(c, "ecdb,check,*", "ecdb",
|
||||
_check_toggle_cb_call, c);
|
||||
evas_object_event_callback_add(c, EVAS_CALLBACK_DEL, _check_del, c);
|
||||
|
||||
cd = calloc(1, sizeof(Check_Data));
|
||||
evas_object_data_set(c, "cd", cd);
|
||||
|
Reference in New Issue
Block a user