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 788155 - Use g_auto to reduce memory leaks
Use g_auto to reduce memory leaks
Status: RESOLVED OBSOLETE
Product: gnome-control-center
Classification: Core
Component: Background
git master
Other Linux
: Normal normal
: ---
Assigned To: Debarshi Ray
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-09-25 19:44 UTC by Robert Ancell
Modified: 2021-06-09 16:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
background: Use g_auto for variables (61.88 KB, patch)
2017-09-25 19:44 UTC, Robert Ancell
none Details | Review
background: Use g_auto for variables (62.51 KB, patch)
2017-09-25 21:05 UTC, Robert Ancell
none Details | Review
background: Use g_auto for variables (60.03 KB, patch)
2018-01-08 03:30 UTC, Robert Ancell
accepted-commit_now Details | Review

Description Robert Ancell 2017-09-25 19:44:49 UTC
Created attachment 360380 [details] [review]
background: Use g_auto for variables

Use the g_auto macros to reduce memory leaks. There were a couple found making this patch.
Comment 1 Robert Ancell 2017-09-25 21:05:01 UTC
Created attachment 360387 [details] [review]
background: Use g_auto for variables

Missed some g_strfreev.
Comment 2 Robert Ancell 2017-12-05 03:44:04 UTC
Any chance of a review?
Comment 3 Felipe Borges 2017-12-19 09:23:49 UTC
(In reply to Robert Ancell from comment #2)
> Any chance of a review?

I'd be happy to review and accept this patches, but it seems to me that we adopted in g-c-c a policy of only using g_auto in newly introduced code, and not porting old stuff yet. Point me out if I'm wrong.
Comment 4 Robert Ancell 2017-12-19 20:29:22 UTC
I asked on the mailing list and the only request was they were reviewed in Bugzilla:
https://mail.gnome.org/archives/gnomecc-list/2017-September/msg00005.html

Not sure if there's been another discussion otherwise.
Comment 5 Felipe Borges 2017-12-20 10:54:51 UTC
(In reply to Robert Ancell from comment #4)
> I asked on the mailing list and the only request was they were reviewed in
> Bugzilla:
> https://mail.gnome.org/archives/gnomecc-list/2017-September/msg00005.html
> 
> Not sure if there's been another discussion otherwise.

Ah, great! In this case I will valgrind it a bit and get back to you soon. Thanks for your patch!
Comment 6 Debarshi Ray 2018-01-04 15:38:40 UTC
Review of attachment 360387 [details] [review]:

Thanks Robert!

Sadly, the patch doesn't apply on current master due to a conflict in panels/background/cc-background-panel.c. Would it be possible for you to rebase it? Otherwise, I can do it myself.

Note that the Backgrounds panel is being redesigned (bug 788515), but I also don't want to just throw away your patch since you obviously spent some effort here.
Comment 7 Robert Ancell 2018-01-08 03:30:01 UTC
Created attachment 366477 [details] [review]
background: Use g_auto for variables

Rebased to master.
Comment 8 Georges Basile Stavracas Neto 2018-01-26 02:45:55 UTC
Review of attachment 366477 [details] [review]:

Hi Robert, thanks for your patch. The Background panel is going through a major rework, and I'm afraid merging this patch would add more burden than we'd gain from it. As such, I'll close this bug and mark this patch as obsolete.

I am sorry to loose your work like this, and hope you understand the rationale behind the decision.
Comment 9 Georges Basile Stavracas Neto 2018-01-26 02:48:03 UTC
Review of attachment 366477 [details] [review]:

Actually, I'll step back from my previous decision, and will apply your patch. Thanks for taking the time to work on it.
Comment 10 André Klapper 2021-06-09 16:25:10 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new bug report at
  https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/

Thank you for your understanding and your help.