| Summary: | Wocky leaks while running unit tests | ||
|---|---|---|---|
| Product: | Wocky | Reporter: | Nicolas Dufresne <nicolas> |
| Component: | General | Assignee: | Nicolas Dufresne <nicolas> |
| Status: | RESOLVED FIXED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
| Severity: | normal | ||
| Priority: | medium | Keywords: | patch |
| Version: | git master | ||
| Hardware: | Other | ||
| OS: | All | ||
| URL: | http://git.collabora.co.uk/?p=user/nicolas/wocky.git;a=shortlog;h=refs/heads/leak-fix | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
|
Description
Nicolas Dufresne
2010-10-12 13:25:35 UTC
Looks good, apart from style! :)
+ if (!g_cancellable_is_cancelled (priv->cancellable))
+ {
+ g_cancellable_cancel (priv->cancellable);
+ }
+ g_object_unref (priv->cancellable);
+ priv->cancellable = NULL;
I think the if statement here should not use braces.
+ if (priv->conn)
This should check != NULL explicitly. There are loads of other cases of this in this branch.
English pedantry in a commit message for future reference: in “Most call where already implemented correctly”, you mean “were”.
(In reply to comment #1) > Looks good, apart from style! :) Sorry for that, I'm stepping from project all the time and I often loose track of right coding style. > > + if (!g_cancellable_is_cancelled (priv->cancellable)) > + { > + g_cancellable_cancel (priv->cancellable); > + } > + g_object_unref (priv->cancellable); > + priv->cancellable = NULL; > > I think the if statement here should not use braces. Fixed. > > + if (priv->conn) > > This should check != NULL explicitly. There are loads of other cases of this in > this branch. Ok, since it was simpler to search them all I've end up fixing 30 of them. > > English pedantry in a commit message for future reference: in “Most call where > already implemented correctly”, you mean “were”. Fixed/Rebased So I'll merge and push this branch soon. Merged upstream. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.