diff src/gtkrequest.c @ 14035:8bda65b88e49

[gaim-migrate @ 16638] A bunch of small changes. Mostly remove "if not null" checks before calling g_free, g_list_free, g_slist_free and g_strdup. Also use g_list_foreach() to call g_free to free strings in an array. And some whitespace changes here and there. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 05 Aug 2006 08:27:39 +0000
parents 99040e8c1142
children
line wrap: on
line diff
--- a/src/gtkrequest.c	Sat Aug 05 05:42:28 2006 +0000
+++ b/src/gtkrequest.c	Sat Aug 05 08:27:39 2006 +0000
@@ -364,7 +364,7 @@
 
 	/* Entry field. */
 	data->u.input.multiline = multiline;
-	data->u.input.hint = (hint == NULL ? NULL : g_strdup(hint));
+	data->u.input.hint = g_strdup(hint);
 
 	if ((data->u.input.hint != NULL) && (!strcmp(data->u.input.hint, "html"))) {
 		GtkWidget *frame;
@@ -1586,7 +1586,7 @@
 {
 	GaimGtkRequestData *data;
 	GtkWidget *dirsel;
-	
+
 	data = g_new0(GaimGtkRequestData, 1);
 	data->type = GAIM_REQUEST_FOLDER;
 	data->user_data = user_data;
@@ -1633,8 +1633,7 @@
 {
 	GaimGtkRequestData *data = (GaimGtkRequestData *)ui_handle;
 
-	if (data->cbs != NULL)
-		g_free(data->cbs);
+	g_free(data->cbs);
 
 	gtk_widget_destroy(data->dialog);