Commit 18db6078 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

msi: Fix some memory leaks.

parent 13078f18
...@@ -518,8 +518,11 @@ static UINT load_media_info(MSIPACKAGE *package, MSIFILE *file, struct media_inf ...@@ -518,8 +518,11 @@ static UINT load_media_info(MSIPACKAGE *package, MSIFILE *file, struct media_inf
mi->disk_id = MSI_RecordGetInteger(row, 1); mi->disk_id = MSI_RecordGetInteger(row, 1);
mi->last_sequence = MSI_RecordGetInteger(row, 2); mi->last_sequence = MSI_RecordGetInteger(row, 2);
msi_free(mi->disk_prompt);
mi->disk_prompt = strdupW(MSI_RecordGetString(row, 3)); mi->disk_prompt = strdupW(MSI_RecordGetString(row, 3));
msi_free(mi->cabinet);
mi->cabinet = strdupW(MSI_RecordGetString(row, 4)); mi->cabinet = strdupW(MSI_RecordGetString(row, 4));
msi_free(mi->volume_label);
mi->volume_label = strdupW(MSI_RecordGetString(row, 5)); mi->volume_label = strdupW(MSI_RecordGetString(row, 5));
msiobj_release(&row->hdr); msiobj_release(&row->hdr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment