Module: wine Branch: master Commit: 8d085920189a8ff75f8c1371bdb2211cd016f715 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8d085920189a8ff75f8c1371bd...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Dec 6 12:22:55 2007 +0100
mshtml: Fixed ref counting.
---
dlls/mshtml/htmlstylesheet.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/htmlstylesheet.c b/dlls/mshtml/htmlstylesheet.c index 781cf63..236831e 100644 --- a/dlls/mshtml/htmlstylesheet.c +++ b/dlls/mshtml/htmlstylesheet.c @@ -254,8 +254,11 @@ static ULONG WINAPI HTMLStyleSheetsCollection_Release(IHTMLStyleSheetsCollection
TRACE("(%p) ref=%d\n", This, ref);
- if(!ref) + if(!ref) { + if(This->nslist) + nsIDOMStyleSheetList_Release(This->nslist); heap_free(This); + }
return ref; }