summaryrefslogtreecommitdiff
path: root/src/tests/efreet
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/efreet')
-rw-r--r--src/tests/efreet/ef_desktop.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tests/efreet/ef_desktop.c b/src/tests/efreet/ef_desktop.c
index c4fa675..78ee87e 100644
--- a/src/tests/efreet/ef_desktop.c
+++ b/src/tests/efreet/ef_desktop.c
@@ -379,6 +379,13 @@ cb_type_parse(Efreet_Desktop *desktop EINA_UNUSED, Efreet_Ini *ini)
379 return (void *)strdup(val); 379 return (void *)strdup(val);
380} 380}
381 381
382static void *
383free_cb(void *data)
384{
385 free(data);
386 return NULL; // this is never used... but... mistake made in api
387}
388
382int 389int
383ef_cb_desktop_type_parse(void) 390ef_cb_desktop_type_parse(void)
384{ 391{
@@ -388,8 +395,7 @@ ef_cb_desktop_type_parse(void)
388 int ret = 1; 395 int ret = 1;
389 396
390 /* add my custom desktop type to efreet */ 397 /* add my custom desktop type to efreet */
391 my_type = efreet_desktop_type_add("My_Type", cb_type_parse, NULL, 398 my_type = efreet_desktop_type_add("My_Type", cb_type_parse, NULL, free_cb);
392 (Efreet_Desktop_Type_Free_Cb)free);
393 399
394 desktop = efreet_desktop_get(ef_test_path_get("test_type.desktop")); 400 desktop = efreet_desktop_get(ef_test_path_get("test_type.desktop"));
395 if (!desktop) 401 if (!desktop)