diff options
Diffstat (limited to 'src/lib/about.c')
-rw-r--r-- | src/lib/about.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/about.c b/src/lib/about.c index 5c8b4288..ae570781 100644 --- a/src/lib/about.c +++ b/src/lib/about.c | |||
@@ -126,10 +126,11 @@ void | |||
126 | GNUNET_GTK_display_about (const char *dialogfile) | 126 | GNUNET_GTK_display_about (const char *dialogfile) |
127 | { | 127 | { |
128 | struct AboutDialogContext *ctx; | 128 | struct AboutDialogContext *ctx; |
129 | ctx = GNUNET_malloc (sizeof (struct AboutDialogContext)); | 129 | |
130 | ctx = GNUNET_new (struct AboutDialogContext); | ||
130 | ctx->builder = GNUNET_GTK_get_new_builder (dialogfile, ctx); | 131 | ctx->builder = GNUNET_GTK_get_new_builder (dialogfile, ctx); |
131 | 132 | ||
132 | if (ctx->builder == NULL) | 133 | if (NULL == ctx->builder) |
133 | { | 134 | { |
134 | GNUNET_free (ctx); | 135 | GNUNET_free (ctx); |
135 | return; | 136 | return; |