richedit: Only increment objects' reference by one when inserting an OLE object.

This commit is contained in:
Eric Pouech 2009-11-08 15:04:47 +01:00 committed by Alexandre Julliard
parent cdb2ccd2d8
commit ab9c51dd6a
1 changed files with 0 additions and 3 deletions

View File

@ -388,9 +388,6 @@ IRichEditOle_fnInsertObject(IRichEditOle *me, REOBJECT *reo)
TRACE("(%p,%p)\n", This, reo);
if (reo->cbStruct < sizeof(*reo)) return STG_E_INVALIDPARAMETER;
if (reo->poleobj) IOleObject_AddRef(reo->poleobj);
if (reo->pstg) IStorage_AddRef(reo->pstg);
if (reo->polesite) IOleClientSite_AddRef(reo->polesite);
ME_InsertOLEFromCursor(This->editor, reo, 0);
ME_CommitUndo(This->editor);