fieldanalysis: fix double free() crashes
authorRené Stadler <mail@renestadler.de>
Wed, 9 Mar 2011 11:19:50 +0000 (13:19 +0200)
committerRené Stadler <mail@renestadler.de>
Wed, 9 Mar 2011 11:19:50 +0000 (13:19 +0200)
gst/fieldanalysis/gstfieldanalysis.c

index 5f093320f18e7ec98b7237a8de9c7f5f6e23bd6a..2d1f393c8120eebe9e157ef69730c86c0ac10ff9 100644 (file)
@@ -333,7 +333,9 @@ gst_field_analysis_reset (GstFieldAnalysis * filter)
   filter->first_buffer = TRUE;
   filter->width = 0;
   g_free (filter->comb_mask);
+  filter->comb_mask = NULL;
   g_free (filter->block_scores);
+  filter->block_scores = NULL;
 }
 
 static void