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 757639 - g_object_unref warning on start
g_object_unref warning on start
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2015-11-05 15:18 UTC by Sebastien Bacher
Modified: 2015-11-09 17:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2015-11-05 15:18:26 UTC
Using gedit 3.18.1 on the current Ubuntu, g_object_unref() warnings are displayed on start

the issue is with that code https://git.gnome.org/browse/gedit/tree/gedit/gedit-tab.c#n463

"		cursor = gdk_cursor_new_from_name (display, "text");
...
		g_object_unref (cursor);"


the gdk function can return null (" a new GdkCursor, or NULL if there is no cursor with the given name. "), which seems to be the case on Ubuntu (that might be another problem), gedit should handle that case (same for the previous code blob)
Comment 1 Sébastien Wilmet 2015-11-06 09:49:17 UTC
Fixed:
https://git.gnome.org/browse/gedit/commit/?id=741c22c603df1b1ab7c7314f522b6999ccea3cc2

And backported to the gnome-3-18 branch.

Thanks for the bug report.
Comment 2 Sebastien Bacher 2015-11-09 17:49:48 UTC
Thanks, note that it seems that most cursor themes (at least looking at the ones used/preinstalled by default on ubuntu) don't ship "progress" and "text" cursors, unsure how much of an issue for gedit that is...