Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update CopyComPointer section.
  • Loading branch information
junkmd committed Nov 30, 2024
commit 4f6b8c817e12af4f69b331bfdd6bd77daa0fd5c6
7 changes: 4 additions & 3 deletions Doc/library/ctypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1957,9 +1957,10 @@ Utility functions
If *src* is not ``NULL``, its ``AddRef`` method is called, incrementing the
reference count.

In contrast, even if *dst* is not ``NULL``, its reference count will not be
decremented before assigning the new value. You need to call its ``Release``
to free it appropriately.
In contrast, the reference count of *dst* will not be decremented before
assigning the new value. Unless *dst* is ``NULL``, the caller is responsible
for decrementing the reference count by calling its ``Release`` method when
necessary.

.. availability:: Windows

Expand Down