plug leak.

mark driver as const so its more obvious not to strdup


SVN revision: 26699
This commit is contained in:
rephorm 2006-10-20 01:46:41 +00:00 committed by rephorm
parent 86352e8677
commit 000776d5fd
2 changed files with 2 additions and 2 deletions

View File

@ -584,7 +584,7 @@ ecore_evas_fb_new(char *disp_name, int rotation, int w, int h)
ee->engine.func = (Ecore_Evas_Engine_Func *)&_ecore_fb_engine_func;
ee->driver = strdup("fb");
ee->driver = "fb";
if (disp_name) ee->name = strdup(disp_name);
if (w < 1) w = 1;

View File

@ -155,7 +155,7 @@ struct _Ecore_Evas
Ecore_List __list_data;
ECORE_MAGIC;
Evas *evas;
char *driver;
const char *driver;
char *name;
int x, y, w, h;
short rotation;