forked from enlightenment/efl
properly sht down evas etc, so evas_software_x11_test can be used to check for leaks. fixes need to be applied to the other engine tests as well
SVN revision: 18704
This commit is contained in:
parent
594ad62182
commit
1652f61fb7
|
@ -50,6 +50,7 @@ main(int argc, char **argv)
|
||||||
XSync(disp, False);
|
XSync(disp, False);
|
||||||
|
|
||||||
/* test evas_free.... :) */
|
/* test evas_free.... :) */
|
||||||
|
evas_init();
|
||||||
evas = evas_new();
|
evas = evas_new();
|
||||||
evas_output_method_set(evas, evas_render_method_lookup("software_x11"));
|
evas_output_method_set(evas, evas_render_method_lookup("software_x11"));
|
||||||
evas_output_size_set(evas, win_w, win_h);
|
evas_output_size_set(evas, win_w, win_h);
|
||||||
|
@ -71,6 +72,7 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
setup();
|
setup();
|
||||||
printf("################ evas free\n");
|
printf("################ evas free\n");
|
||||||
|
setdown();
|
||||||
evas_free(evas);
|
evas_free(evas);
|
||||||
printf("evas freed. DONE\n");
|
printf("evas freed. DONE\n");
|
||||||
|
|
||||||
|
@ -95,6 +97,7 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
setup();
|
setup();
|
||||||
printf("################ evas free\n");
|
printf("################ evas free\n");
|
||||||
|
setdown();
|
||||||
evas_free(evas);
|
evas_free(evas);
|
||||||
printf("evas freed. DONE\n");
|
printf("evas freed. DONE\n");
|
||||||
|
|
||||||
|
@ -119,6 +122,7 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
setup();
|
setup();
|
||||||
printf("################ evas free\n");
|
printf("################ evas free\n");
|
||||||
|
setdown();
|
||||||
evas_free(evas);
|
evas_free(evas);
|
||||||
printf("evas freed. DONE\n");
|
printf("evas freed. DONE\n");
|
||||||
|
|
||||||
|
@ -143,6 +147,7 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
setup();
|
setup();
|
||||||
printf("################ evas free\n");
|
printf("################ evas free\n");
|
||||||
|
setdown();
|
||||||
evas_free(evas);
|
evas_free(evas);
|
||||||
printf("evas freed. DONE\n");
|
printf("evas freed. DONE\n");
|
||||||
|
|
||||||
|
@ -183,7 +188,13 @@ main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
case ButtonPress:
|
case ButtonPress:
|
||||||
if (ev.xbutton.button == 3)
|
if (ev.xbutton.button == 3)
|
||||||
|
{
|
||||||
|
setdown();
|
||||||
|
evas_free(evas);
|
||||||
|
XCloseDisplay(disp);
|
||||||
|
evas_shutdown();
|
||||||
exit(0);
|
exit(0);
|
||||||
|
}
|
||||||
#if 0
|
#if 0
|
||||||
if (!pause_me)
|
if (!pause_me)
|
||||||
pause_me = 1;
|
pause_me = 1;
|
||||||
|
@ -227,5 +238,11 @@ main(int argc, char **argv)
|
||||||
if (pause_me == 2)
|
if (pause_me == 2)
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setdown();
|
||||||
|
evas_free(evas);
|
||||||
|
XCloseDisplay(disp);
|
||||||
|
evas_shutdown();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue