Combo works now, added a label widget, and use stringshare for the constant drive info stuff.
This commit is contained in:
@ -31,10 +31,9 @@ ecdb_aquire_drive_info(void)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* It would be nice if there was an easier way to do this */
|
||||
drive->product = strdup(drives_current[i].product);
|
||||
drive->vendor = strdup(drives_current[i].vendor);
|
||||
drive->revision = strdup(drives_current[i].revision);
|
||||
drive->product = eina_stringshare_add(drives_current[i].product);
|
||||
drive->vendor = eina_stringshare_add(drives_current[i].vendor);
|
||||
drive->revision = eina_stringshare_add(drives_current[i].revision);
|
||||
drive->location = strdup(drives_current[i].location);
|
||||
drive->read_dvdram = drives_current[i].read_dvdram;
|
||||
drive->read_dvdr = drives_current[i].read_dvdr;
|
||||
@ -48,7 +47,7 @@ ecdb_aquire_drive_info(void)
|
||||
|
||||
burn_drive_get_speedlist(drives_current[i].drive, &speeds);
|
||||
|
||||
drive->profile_name = strdup(speeds->profile_name);
|
||||
drive->profile_name = eina_stringshare_add(speeds->profile_name);
|
||||
drive->profile_loaded = speeds->profile_loaded;
|
||||
|
||||
while (speeds->next)
|
||||
@ -89,11 +88,11 @@ ecdb_drive_info_list_free(Eina_List *list)
|
||||
{
|
||||
FREE(info->read_speeds);
|
||||
FREE(info->write_speeds);
|
||||
FREE(info->vendor);
|
||||
FREE(info->product);
|
||||
FREE(info->revision);
|
||||
FREE(info->location);
|
||||
FREE(info->profile_name);
|
||||
eina_stringshare_del(info->vendor);
|
||||
eina_stringshare_del(info->product);
|
||||
eina_stringshare_del(info->revision);
|
||||
eina_stringshare_del(info->profile_name);
|
||||
FREE(info);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user