gtk: Remove some unnecessary comments
All GTK functions that allocate memory, and most GLib functions, will
either succeed or abort, but will not return NULL: they make no attempt
to handle OOM in any way that is more graceful than aborting. This fits
well with how Linux normally behaves (overcommitting memory and killing
processes if it runs out, rather than returning NULL from malloc()).
This commit doesn't remove all such comments, just the ones near code
that I'm about to modify anyway.
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie
2 years ago
138 | 138 | char * description; |
139 | 139 | |
140 | 140 | description = q_get_description(fe, question); |
141 | /* XXX: check NULL! */ | |
142 | 141 | view = gtk_text_view_new(); |
143 | /* XXX: check NULL! */ | |
144 | 142 | buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(view)); |
145 | 143 | gtk_text_buffer_set_text(buffer, description, -1 /* until '\0' */); |
146 | 144 | g_free(description); |