one uninitialized variable
one missing free
one malloc that's 1 byte too small
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1676
b64f7644-9d1e-0410-96f1-
a4d463321fa5
device = g_drive_get_identifier(gd, G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE);
halDrive = libhal_drive_from_device_file (hal_ctx, device);
dtype = libhal_drive_get_type(halDrive);
+ libhal_drive_free(halDrive);
g_free(device);
return (dtype == LIBHAL_DRIVE_TYPE_CDROM);
}
ud->queue = NULL;
ud->current_job = NULL;
ud->current_dvd_device = NULL;
+ ud->dont_clear_presets = FALSE;
// Redirect stderr to the activity window
IoRedirect(ud);
// Enable events that alert us to media change events
fseek(fd, 0, SEEK_END);
size = ftell(fd);
fseek(fd, 0, SEEK_SET);
- buffer = g_malloc(size);
+ buffer = g_malloc(size+1);
size = fread(buffer, 1, size, fd);
buffer[size] = 0;
gval = ghb_plist_parse(buffer, (gssize)size);