Jacek Caban : urlmon: Fixed ref count leak.
Alexandre Julliard
julliard at winehq.org
Thu Feb 7 07:59:27 CST 2008
Module: wine
Branch: master
Commit: ac61b90f87a2062b99f6f70686ea86b5b6c241c3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ac61b90f87a2062b99f6f70686ea86b5b6c241c3
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Feb 6 17:42:55 2008 +0100
urlmon: Fixed ref count leak.
---
dlls/urlmon/binding.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/urlmon/binding.c b/dlls/urlmon/binding.c
index 6c5ed61..b564651 100644
--- a/dlls/urlmon/binding.c
+++ b/dlls/urlmon/binding.c
@@ -811,7 +811,10 @@ static stgmed_obj_t *create_stgmed_stream(stgmed_buf_t *buf)
static void stgmed_file_release(stgmed_obj_t *obj)
{
- heap_free(obj);
+ stgmed_file_obj_t *file_obj = (stgmed_file_obj_t*)obj;
+
+ IUnknown_Release(STGMEDUNK(file_obj->buf));
+ heap_free(file_obj);
}
static HRESULT stgmed_file_fill_stgmed(stgmed_obj_t *obj, STGMEDIUM *stgmed)
More information about the wine-cvs
mailing list