diff options
author | jstebbins <[email protected]> | 2014-02-21 00:23:37 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2014-02-21 00:23:37 +0000 |
commit | d206a74fb8500b64310b75be8db08ec9e0a972f5 (patch) | |
tree | 15941705a5f17d83f29e2b28fc1d548fe5aab9e3 /gtk/src/preview.c | |
parent | cc82c19b2f52a7527615ccbae34154e0085b6708 (diff) |
LinGui: fix range update issues and plug memory leaks
Updating the range of GtkScale and GtkSpinButtons causes the current
value to update inappropriately under some conditions. So update
the range and value concurrently.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6051 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/preview.c')
-rw-r--r-- | gtk/src/preview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/preview.c b/gtk/src/preview.c index a63f61b2d..cf046f24a 100644 --- a/gtk/src/preview.c +++ b/gtk/src/preview.c @@ -240,8 +240,8 @@ ghb_preview_cleanup(signal_user_data_t *ud) { if (ud->preview->current) { - ud->preview->current = NULL; g_free(ud->preview->current); + ud->preview->current = NULL; } } @@ -987,7 +987,7 @@ ghb_set_preview_image(signal_user_data_t *ud) { widget = GHB_WIDGET (ud->builder, "preview_button_image"); gtk_image_set_from_pixbuf(GTK_IMAGE(widget), scaled_preview); - g_object_unref (scaled_preview); + g_object_unref(scaled_preview); } } } |