mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:25:39 +00:00
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: David Kahurani <k.kahurani@gmail.com>
This commit is contained in:
parent
9a614fefaf
commit
386dbe1059
|
@ -20,6 +20,8 @@
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
#define COBJMACROS
|
||||||
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
#include "winerror.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))
|
if (MSI_RecordGetIStream(rec, i + 1, &stream))
|
||||||
return ERROR_FUNCTION_FAILED;
|
return ERROR_FUNCTION_FAILED;
|
||||||
r = sv->table->ops->set_stream(sv->table, row, col, stream);
|
r = sv->table->ops->set_stream(sv->table, row, col, stream);
|
||||||
|
IStream_Release(stream);
|
||||||
}
|
}
|
||||||
else if (type & MSITYPE_STRING)
|
else if (type & MSITYPE_STRING)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue