Commit 386dbe10 authored by David Kahurani's avatar David Kahurani Committed by Alexandre Julliard

msi: Avoid leaking stream on DB update.

MSI_RecordGetIStream adds a reference to the stream. This reference should be negated as we are done setting the stream. Signed-off-by: 's avatarDavid Kahurani <k.kahurani@gmail.com>
parent 9a614fef
......@@ -20,6 +20,8 @@
#include <stdarg.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
......@@ -269,6 +271,7 @@ UINT msi_select_update(MSIVIEW *view, MSIRECORD *rec, UINT row)
if (MSI_RecordGetIStream(rec, i + 1, &stream))
return ERROR_FUNCTION_FAILED;
r = sv->table->ops->set_stream(sv->table, row, col, stream);
IStream_Release(stream);
}
else if (type & MSITYPE_STRING)
{
......
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