diff options
author | jstebbins <[email protected]> | 2008-09-08 00:24:11 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-09-08 00:24:11 +0000 |
commit | ee19debd964cbd40df6097f34be0076162700550 (patch) | |
tree | ca17cbdbaf7a1076e251528196bfc0b610611a83 /gtk/src/callbacks.c | |
parent | 6ade707e8ed615708c3eaa5a0d282c3936fe825a (diff) |
LinGui: fix memory issues found by valgrind
one uninitialized variable
one missing free
one malloc that's 1 byte too small
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1676 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index b185d4af4..453fa693a 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -3864,6 +3864,7 @@ ghb_is_cd(GDrive *gd) device = g_drive_get_identifier(gd, G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE); halDrive = libhal_drive_from_device_file (hal_ctx, device); dtype = libhal_drive_get_type(halDrive); + libhal_drive_free(halDrive); g_free(device); return (dtype == LIBHAL_DRIVE_TYPE_CDROM); } |