summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2003-08-15 14:43:29 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2003-08-15 14:43:29 +0000
commit5fc2e2ea8a7d6bd9d95007ab8479e84a46410a9a (patch)
treef180ef3efb33b7583ce38fa8470f4ba0215d28cc /src
parent9cecc1669dea6e85c0e0c97caf8ef9301081cd85 (diff)
downloadxine-lib-5fc2e2ea8a7d6bd9d95007ab8479e84a46410a9a.tar.gz
xine-lib-5fc2e2ea8a7d6bd9d95007ab8479e84a46410a9a.tar.bz2
fix some small memleaks
CVS patchset: 5292 CVS date: 2003/08/15 14:43:29
Diffstat (limited to 'src')
-rw-r--r--src/post/deinterlace/xine_plugin.c6
-rw-r--r--src/post/planar/boxblur.c6
-rw-r--r--src/post/planar/denoise3d.c6
-rw-r--r--src/post/planar/eq.c6
-rw-r--r--src/post/planar/eq2.c6
-rw-r--r--src/post/planar/unsharp.c6
6 files changed, 24 insertions, 12 deletions
diff --git a/src/post/deinterlace/xine_plugin.c b/src/post/deinterlace/xine_plugin.c
index d4e2cdc21..5558231f7 100644
--- a/src/post/deinterlace/xine_plugin.c
+++ b/src/post/deinterlace/xine_plugin.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: xine_plugin.c,v 1.12 2003/08/12 13:56:25 mroi Exp $
+ * $Id: xine_plugin.c,v 1.13 2003/08/15 14:43:29 mroi Exp $
*
* advanced video deinterlacer plugin
* Jun/2003 by Miguel Freitas
@@ -320,9 +320,10 @@ static post_plugin_t *deinterlace_open_plugin(post_class_t *class_gen, int input
post_class_deinterlace_t *class = (post_class_deinterlace_t *)class_gen;
post_video_port_t *port;
- if (!this || !input || !output || !video_target || !video_target[0]) {
+ if (!this || !input || !input_api || !output || !video_target || !video_target[0]) {
free(this);
free(input);
+ free(input_api);
free(output);
return NULL;
}
@@ -407,6 +408,7 @@ static void deinterlace_dispose(post_plugin_t *this_gen)
free(this->post.xine_post.audio_input);
free(this->post.xine_post.video_input);
free(xine_list_first_content(this->post.input));
+ free(xine_list_next_content(this->post.input));
free(xine_list_first_content(this->post.output));
xine_list_free(this->post.input);
xine_list_free(this->post.output);
diff --git a/src/post/planar/boxblur.c b/src/post/planar/boxblur.c
index 331cd2b6b..5be693e33 100644
--- a/src/post/planar/boxblur.c
+++ b/src/post/planar/boxblur.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: boxblur.c,v 1.5 2003/08/12 13:56:26 mroi Exp $
+ * $Id: boxblur.c,v 1.6 2003/08/15 14:43:29 mroi Exp $
*
* mplayer's boxblur
* Copyright (C) 2002 Michael Niedermayer <michaelni@gmx.at>
@@ -176,9 +176,10 @@ static post_plugin_t *boxblur_open_plugin(post_class_t *class_gen, int inputs,
post_boxblur_out_t *output = (post_boxblur_out_t *)malloc(sizeof(post_boxblur_out_t));
post_video_port_t *port;
- if (!this || !input || !output || !video_target || !video_target[0]) {
+ if (!this || !input || !input_api || !output || !video_target || !video_target[0]) {
free(this);
free(input);
+ free(input_api);
free(output);
return NULL;
}
@@ -258,6 +259,7 @@ static void boxblur_dispose(post_plugin_t *this_gen)
free(this->post.xine_post.audio_input);
free(this->post.xine_post.video_input);
free(xine_list_first_content(this->post.input));
+ free(xine_list_next_content(this->post.input));
free(xine_list_first_content(this->post.output));
xine_list_free(this->post.input);
xine_list_free(this->post.output);
diff --git a/src/post/planar/denoise3d.c b/src/post/planar/denoise3d.c
index af38165e9..47570d4a9 100644
--- a/src/post/planar/denoise3d.c
+++ b/src/post/planar/denoise3d.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: denoise3d.c,v 1.5 2003/08/12 13:56:26 mroi Exp $
+ * $Id: denoise3d.c,v 1.6 2003/08/15 14:43:30 mroi Exp $
*
* mplayer's denoise3d
* Copyright (C) 2003 Daniel Moreno <comac@comac.darktech.org>
@@ -210,9 +210,10 @@ static post_plugin_t *denoise3d_open_plugin(post_class_t *class_gen, int inputs,
post_denoise3d_out_t *output = (post_denoise3d_out_t *)malloc(sizeof(post_denoise3d_out_t));
post_video_port_t *port;
- if (!this || !input || !output || !video_target || !video_target[0]) {
+ if (!this || !input || !input_api || !output || !video_target || !video_target[0]) {
free(this);
free(input);
+ free(input_api);
free(output);
return NULL;
}
@@ -294,6 +295,7 @@ static void denoise3d_dispose(post_plugin_t *this_gen)
free(this->post.xine_post.audio_input);
free(this->post.xine_post.video_input);
free(xine_list_first_content(this->post.input));
+ free(xine_list_next_content(this->post.input));
free(xine_list_first_content(this->post.output));
xine_list_free(this->post.input);
xine_list_free(this->post.output);
diff --git a/src/post/planar/eq.c b/src/post/planar/eq.c
index b83e058b6..e51fffe6d 100644
--- a/src/post/planar/eq.c
+++ b/src/post/planar/eq.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: eq.c,v 1.4 2003/08/12 13:56:26 mroi Exp $
+ * $Id: eq.c,v 1.5 2003/08/15 14:43:30 mroi Exp $
*
* mplayer's eq (soft video equalizer)
* Copyright (C) Richard Felker
@@ -260,9 +260,10 @@ static post_plugin_t *eq_open_plugin(post_class_t *class_gen, int inputs,
post_eq_out_t *output = (post_eq_out_t *)malloc(sizeof(post_eq_out_t));
post_video_port_t *port;
- if (!this || !input || !output || !video_target || !video_target[0]) {
+ if (!this || !input || !input_api || !output || !video_target || !video_target[0]) {
free(this);
free(input);
+ free(input_api);
free(output);
return NULL;
}
@@ -348,6 +349,7 @@ static void eq_dispose(post_plugin_t *this_gen)
free(this->post.xine_post.audio_input);
free(this->post.xine_post.video_input);
free(xine_list_first_content(this->post.input));
+ free(xine_list_next_content(this->post.input));
free(xine_list_first_content(this->post.output));
xine_list_free(this->post.input);
xine_list_free(this->post.output);
diff --git a/src/post/planar/eq2.c b/src/post/planar/eq2.c
index 0836f4139..9b17fb1ee 100644
--- a/src/post/planar/eq2.c
+++ b/src/post/planar/eq2.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: eq2.c,v 1.5 2003/08/12 13:56:26 mroi Exp $
+ * $Id: eq2.c,v 1.6 2003/08/15 14:43:30 mroi Exp $
*
* mplayer's eq2 (soft video equalizer)
* Software equalizer (brightness, contrast, gamma, saturation)
@@ -435,9 +435,10 @@ static post_plugin_t *eq2_open_plugin(post_class_t *class_gen, int inputs,
vf_eq2_t *eq2;
int i;
- if (!this || !input || !output || !video_target || !video_target[0]) {
+ if (!this || !input || !input_api || !output || !video_target || !video_target[0]) {
free(this);
free(input);
+ free(input_api);
free(output);
return NULL;
}
@@ -537,6 +538,7 @@ static void eq2_dispose(post_plugin_t *this_gen)
free(this->post.xine_post.audio_input);
free(this->post.xine_post.video_input);
free(xine_list_first_content(this->post.input));
+ free(xine_list_next_content(this->post.input));
free(xine_list_first_content(this->post.output));
xine_list_free(this->post.input);
xine_list_free(this->post.output);
diff --git a/src/post/planar/unsharp.c b/src/post/planar/unsharp.c
index 1c7aa18d1..61defa672 100644
--- a/src/post/planar/unsharp.c
+++ b/src/post/planar/unsharp.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: unsharp.c,v 1.5 2003/08/12 13:56:26 mroi Exp $
+ * $Id: unsharp.c,v 1.6 2003/08/15 14:43:30 mroi Exp $
*
* mplayer's unsharp
* Copyright (C) 2002 Rémi Guyomarch <rguyom@pobox.com>
@@ -297,9 +297,10 @@ static post_plugin_t *unsharp_open_plugin(post_class_t *class_gen, int inputs,
post_unsharp_out_t *output = (post_unsharp_out_t *)malloc(sizeof(post_unsharp_out_t));
post_video_port_t *port;
- if (!this || !input || !output || !video_target || !video_target[0]) {
+ if (!this || !input || !input_api || !output || !video_target || !video_target[0]) {
free(this);
free(input);
+ free(input_api);
free(output);
return NULL;
}
@@ -384,6 +385,7 @@ static void unsharp_dispose(post_plugin_t *this_gen)
free(this->post.xine_post.audio_input);
free(this->post.xine_post.video_input);
free(xine_list_first_content(this->post.input));
+ free(xine_list_next_content(this->post.input));
free(xine_list_first_content(this->post.output));
xine_list_free(this->post.input);
xine_list_free(this->post.output);