diff options
author | jstebbins <[email protected]> | 2008-09-08 02:13:48 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-08 02:13:48 +0000 |
commit | 4d231bd034d3f73efae01eee686896234c202a85 (patch) | |
tree | 97641b0afecfd6d8e167e276198f75b8de7b3e63 /gtk/src/hb-backend.c | |
parent | ee19debd964cbd40df6097f34be0076162700550 (diff) |
LinGui: yikes, this thing leaks worse than my roof, fixed
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1677 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r-- | gtk/src/hb-backend.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c index 44ca2346d..d9f4cdbc5 100644 --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -400,6 +400,7 @@ del_tree(const gchar *name, gboolean del_top) } if (del_top) g_rmdir(name); + g_dir_close(gdir); } else { @@ -1226,6 +1227,7 @@ title_opts_set(GtkBuilder *builder, const gchar *name) 3, ii, 4, option, -1); + g_free(option); } } @@ -1270,6 +1272,7 @@ audio_rate_opts_add(GtkBuilder *builder, const gchar *name, gint rate) 3, rate, 4, str, -1); + g_free(str); return TRUE; } return FALSE; @@ -1689,6 +1692,13 @@ ghb_backend_init(GtkBuilder *builder, gint debug, gint update) } void +ghb_backend_close() +{ + hb_close(&h_queue); + hb_close(&h_scan); +} + +void ghb_backend_scan(const gchar *path, gint titleindex) { hb_scan( h_scan, path, titleindex ); |