Codebase list cdebconf / a2da782
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
1 changed file(s) with 0 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
138138 char * description;
139139
140140 description = q_get_description(fe, question);
141 /* XXX: check NULL! */
142141 view = gtk_text_view_new();
143 /* XXX: check NULL! */
144142 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(view));
145143 gtk_text_buffer_set_text(buffer, description, -1 /* until '\0' */);
146144 g_free(description);