summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index d05b66f84..3a9d581b1 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -886,7 +886,7 @@ main(int argc, char *argv[])
ud->globals = ghb_settings_new();
ud->prefs = ghb_settings_new();
- ud->settings_array = ghb_array_value_new(1);
+ ud->settings_array = ghb_array_new();
ud->settings = ghb_settings_new();
ghb_array_append(ud->settings_array, ud->settings);
@@ -1049,7 +1049,7 @@ main(int argc, char *argv[])
if (preset)
{
ghb_select_preset(ud->builder, preset);
- ghb_value_free(preset);
+ ghb_value_free(&preset);
}
}
else
@@ -1230,11 +1230,11 @@ main(int argc, char *argv[])
gtk_main();
ghb_backend_close();
- ghb_value_free(ud->queue);
- ghb_value_free(ud->settings_array);
- ghb_value_free(ud->prefs);
- ghb_value_free(ud->globals);
- ghb_value_free(ud->x264_priv);
+ ghb_value_free(&ud->queue);
+ ghb_value_free(&ud->settings_array);
+ ghb_value_free(&ud->prefs);
+ ghb_value_free(&ud->globals);
+ ghb_value_free(&ud->x264_priv);
g_io_channel_unref(ud->activity_log);
ghb_settings_close();