summaryrefslogtreecommitdiff
path: root/src/tests/efreet
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-08 14:14:45 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:43:59 +0000
commit7c075c74318050b66d7c756f2f3c34642feed02f (patch)
treef529e137c5da0b2e838a31a1b470729fabfe4652 /src/tests/efreet
parentd6b5cdf7a163f938ebb8ef20f798057611498a63 (diff)
efreet test - use correct free func prototype for desktyp type add
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)