After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 578870 - memory leak in gio.File.copy_async
memory leak in gio.File.copy_async
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: gio
Git master
Other All
: Normal minor
: ---
Assigned To: Paul Pogonyshev
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-13 19:52 UTC by Paul Pogonyshev
Modified: 2009-04-13 20:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
simple but generic patch (3.31 KB, patch)
2009-04-13 19:55 UTC, Paul Pogonyshev
committed Details | Review

Description Paul Pogonyshev 2009-04-13 19:52:41 UTC
Second PyGIONotify structure in gio.File.copy_async is leaked, as is said in a comment.  Patch follows.
Comment 1 Paul Pogonyshev 2009-04-13 19:55:08 UTC
Created attachment 132611 [details] [review]
simple but generic patch

This patch adds a generic machinery in case we need to add similar functions later.  It makes it possible to chain two or more PyGIONotify structures together, so that you can control (and free) all of them at once.  Reviewing is needed, I'm not completely certain in the code.
Comment 2 Gian Mario Tagliaretti 2009-04-13 20:22:43 UTC
looks good to me Paul
Comment 3 Paul Pogonyshev 2009-04-13 20:31:16 UTC
Sending        ChangeLog
Sending        gio/gfile.override
Sending        gio/gio.override
Transmitting file data ...
Committed revision 1060.