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 792221 - Port to g_auto*
Port to g_auto*
Status: RESOLVED OBSOLETE
Product: bijiben
Classification: Applications
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Bijiben maintainer(s)
Bijiben maintainer(s)
Depends on:
Blocks: 789696
 
 
Reported: 2018-01-05 02:10 UTC by Mohammed Sadiq
Modified: 2018-05-04 13:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
main: Port to g_auto* (946 bytes, patch)
2018-01-05 02:11 UTC, Mohammed Sadiq
none Details | Review
application: Port to g_auto* (4.85 KB, patch)
2018-01-05 02:28 UTC, Mohammed Sadiq
none Details | Review
app-menu: Port to g_auto* (1.41 KB, patch)
2018-01-05 02:36 UTC, Mohammed Sadiq
none Details | Review
import-dialog: Port to g_auto* (990 bytes, patch)
2018-01-05 02:37 UTC, Mohammed Sadiq
none Details | Review
organize-dialog: Port to g_auto* (1.47 KB, patch)
2018-01-05 02:42 UTC, Mohammed Sadiq
none Details | Review
note-view: Port to g_auto* (1.72 KB, patch)
2018-01-05 03:06 UTC, Mohammed Sadiq
none Details | Review
main: Use g_auto* (942 bytes, patch)
2018-01-10 06:54 UTC, Mohammed Sadiq
committed Details | Review
application: Use g_auto* (4.84 KB, patch)
2018-01-10 06:54 UTC, Mohammed Sadiq
committed Details | Review
app-menu: Use g_auto* (1.41 KB, patch)
2018-01-10 06:55 UTC, Mohammed Sadiq
committed Details | Review
import-dialog: Use g_auto* (986 bytes, patch)
2018-01-10 06:55 UTC, Mohammed Sadiq
committed Details | Review
organize-dialog: Use g_auto* (1.47 KB, patch)
2018-01-10 06:55 UTC, Mohammed Sadiq
committed Details | Review
note-view: Use g_auto* (1.72 KB, patch)
2018-01-10 06:56 UTC, Mohammed Sadiq
committed Details | Review
webkit-editor: Use g_auto* (4.16 KB, patch)
2018-04-17 01:46 UTC, Mohammed Sadiq
committed Details | Review

Description Mohammed Sadiq 2018-01-05 02:10:04 UTC
It would be nice if the code is ported to use g_auto* macros so that the allocated resource is automatically freed when out of scope. This shall help save many leaks in the application.
Comment 1 Mohammed Sadiq 2018-01-05 02:11:54 UTC
Created attachment 366345 [details] [review]
main: Port to g_auto*
Comment 2 Mohammed Sadiq 2018-01-05 02:28:21 UTC
Created attachment 366346 [details] [review]
application: Port to g_auto*
Comment 3 Mohammed Sadiq 2018-01-05 02:36:45 UTC
Created attachment 366347 [details] [review]
app-menu: Port to g_auto*
Comment 4 Mohammed Sadiq 2018-01-05 02:37:55 UTC
Created attachment 366348 [details] [review]
import-dialog: Port to g_auto*
Comment 5 Mohammed Sadiq 2018-01-05 02:42:40 UTC
Created attachment 366349 [details] [review]
organize-dialog: Port to g_auto*
Comment 6 Mohammed Sadiq 2018-01-05 03:06:44 UTC
Created attachment 366351 [details] [review]
note-view: Port to g_auto*
Comment 7 Isaque Galdino 2018-01-10 02:48:12 UTC
Review of attachment 366345 [details] [review]:

Patch seems fine, although I didn't test it.
My only concern are the commit messages, which doesn't describe what it actually does.

Please elaborate a little bit, so we can push it to master.

Thanks.
Comment 8 Isaque Galdino 2018-01-10 02:49:24 UTC
Review of attachment 366346 [details] [review]:

Please improve the commit message. Thx.
Comment 9 Isaque Galdino 2018-01-10 02:49:24 UTC
Review of attachment 366346 [details] [review]:

Please improve the commit message. Thx.
Comment 10 Isaque Galdino 2018-01-10 02:49:35 UTC
Review of attachment 366347 [details] [review]:

Please improve the commit message. Thx.
Comment 11 Isaque Galdino 2018-01-10 02:49:52 UTC
Review of attachment 366347 [details] [review]:

Please improve the commit message. Thx.
Comment 12 Isaque Galdino 2018-01-10 02:50:06 UTC
Review of attachment 366348 [details] [review]:

Please improve the commit message. Thx.
Comment 13 Isaque Galdino 2018-01-10 02:50:17 UTC
Review of attachment 366349 [details] [review]:

Please improve the commit message. Thx.
Comment 14 Isaque Galdino 2018-01-10 02:50:29 UTC
Review of attachment 366349 [details] [review]:

Please improve the commit message. Thx.
Comment 15 Isaque Galdino 2018-01-10 02:50:42 UTC
Review of attachment 366351 [details] [review]:

Please improve the commit message. Thx.
Comment 16 Mohammed Sadiq 2018-01-10 02:53:01 UTC
(In reply to Isaque Galdino from comment #7)
> Patch seems fine, although I didn't test it.
> My only concern are the commit messages, which doesn't describe what it
> actually does.

I wrote the commit message based on bug 788174. Should we actually elaborate it? Every commit will be linking to this bugzilla item, which explains that using g_auto* will help us free the resource automatically, rather than doing it ourself.
Comment 17 Mohammed Sadiq 2018-01-10 06:54:20 UTC
Created attachment 366588 [details] [review]
main: Use g_auto*
Comment 18 Mohammed Sadiq 2018-01-10 06:54:52 UTC
Created attachment 366589 [details] [review]
application: Use g_auto*
Comment 19 Mohammed Sadiq 2018-01-10 06:55:15 UTC
Created attachment 366590 [details] [review]
app-menu: Use g_auto*
Comment 20 Mohammed Sadiq 2018-01-10 06:55:34 UTC
Created attachment 366591 [details] [review]
import-dialog: Use g_auto*
Comment 21 Mohammed Sadiq 2018-01-10 06:55:56 UTC
Created attachment 366592 [details] [review]
organize-dialog: Use g_auto*
Comment 22 Mohammed Sadiq 2018-01-10 06:56:11 UTC
Created attachment 366593 [details] [review]
note-view: Use g_auto*
Comment 23 Isaque Galdino 2018-01-14 18:40:28 UTC
Review of attachment 366588 [details] [review]:

Cool, please commit.
Comment 24 Isaque Galdino 2018-01-14 18:41:20 UTC
Review of attachment 366589 [details] [review]:

Good, please commit.
Comment 25 Isaque Galdino 2018-01-14 18:41:50 UTC
Review of attachment 366590 [details] [review]:

Good, please commit.
Comment 26 Isaque Galdino 2018-01-14 18:42:14 UTC
Review of attachment 366591 [details] [review]:

Also good, please commit.
Comment 27 Isaque Galdino 2018-01-14 18:42:48 UTC
Review of attachment 366592 [details] [review]:

Good, please commit.
Comment 28 Isaque Galdino 2018-01-14 18:43:38 UTC
Review of attachment 366593 [details] [review]:

Thanks for your patches, please commit!
Comment 29 Isaque Galdino 2018-01-14 21:03:09 UTC
Review of attachment 366588 [details] [review]:

Pushed to master.
Comment 30 Isaque Galdino 2018-01-14 21:07:48 UTC
Review of attachment 366589 [details] [review]:

Pushed to master.
Comment 31 Isaque Galdino 2018-01-14 21:10:01 UTC
Review of attachment 366590 [details] [review]:

Pushed to master.
Comment 32 Isaque Galdino 2018-01-14 21:12:56 UTC
Review of attachment 366591 [details] [review]:

Pushed to master.
Comment 33 Isaque Galdino 2018-01-14 21:13:23 UTC
Review of attachment 366591 [details] [review]:

Fixed status.
Comment 34 Isaque Galdino 2018-01-14 21:17:30 UTC
Review of attachment 366592 [details] [review]:

Pushed to master.
Comment 35 Isaque Galdino 2018-01-14 21:19:54 UTC
Review of attachment 366593 [details] [review]:

Pushed to master.
Comment 36 Mohammed Sadiq 2018-04-17 01:46:23 UTC
Created attachment 371005 [details] [review]
webkit-editor: Use g_auto*
Comment 37 Isaque Galdino 2018-04-17 01:49:30 UTC
Review of attachment 371005 [details] [review]:

Cool. Thx.
Comment 38 Mohammed Sadiq 2018-04-17 01:52:29 UTC
Attachment 371005 [details] pushed as 8fe5166 - webkit-editor: Use g_auto*
Comment 39 Mohammed Sadiq 2018-04-17 01:53:34 UTC
git-bz did that. Sorry, not yet ready for close.
Comment 40 GNOME Infrastructure Team 2018-05-04 13:12:12 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-notes/issues/85.