diff options
author | jstebbins <[email protected]> | 2010-05-24 00:05:57 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-05-24 00:05:57 +0000 |
commit | e2c3279cb7448b820cd2077240666af08cae8bba (patch) | |
tree | fd191695428e895f931caf34538b6ff93f7764fc /libhb/hb.c | |
parent | 48bf7fbbadd6bbff82d40247ebcd673891dbbcfb (diff) |
fix memory leak in pinvoke patch
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3320 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index 001c74c0a..2a0fff133 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -1511,37 +1511,37 @@ hb_filter_object_t * hb_get_filter_object(int filter_id, const char * settings) { if (filter_id == HB_FILTER_ROTATE) { - hb_filter_rotate.settings = strdup(settings); + hb_filter_rotate.settings = settings; return &hb_filter_rotate; } if (filter_id == HB_FILTER_DETELECINE) { - hb_filter_detelecine.settings = strdup(settings); + hb_filter_detelecine.settings = settings; return &hb_filter_detelecine; } if (filter_id == HB_FILTER_DECOMB) { - hb_filter_decomb.settings = strdup(settings); + hb_filter_decomb.settings = settings; return &hb_filter_decomb; } if (filter_id == HB_FILTER_DEINTERLACE) { - hb_filter_deinterlace.settings = strdup(settings); + hb_filter_deinterlace.settings = settings; return &hb_filter_deinterlace; } if (filter_id == HB_FILTER_DEBLOCK) { - hb_filter_deblock.settings = strdup(settings); + hb_filter_deblock.settings = settings; return &hb_filter_deblock; } if (filter_id == HB_FILTER_DENOISE) { - hb_filter_denoise.settings = strdup(settings); + hb_filter_denoise.settings = settings; return &hb_filter_denoise; } return NULL; |