summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-04-03 17:44:19 +0000
committerjstebbins <[email protected]>2015-04-03 17:44:19 +0000
commita80e6ccc6eea8bae648e5a6cf1573361335296f2 (patch)
tree1f7f3745f7ed1251a53f7b9ffbec668317a9ebcf /gtk/src/main.c
parent5efc8273df8372d36819391a1700314bd052ce2c (diff)
LinGui: refactor dict values
makes most dict methods a simple passthru to hb_dict git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7046 b64f7644-9d1e-0410-96f1-a4d463321fa5
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();