]> git.sesse.net Git - vlc/commitdiff
Fixed an invalid free in input_item_DelInfo().
authorLaurent Aimar <fenrir@videolan.org>
Fri, 5 Feb 2010 20:56:49 +0000 (21:56 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Fri, 5 Feb 2010 20:56:49 +0000 (21:56 +0100)
src/input/item.c

index e6f17015eeb5db0d3995d660bada00a7c00f6652..114987e8228efedfdc81c6760c58c27258d5ca94 100644 (file)
@@ -716,11 +716,9 @@ int input_item_DelInfo( input_item_t *p_i,
         }
         free( p_cat->pp_infos );
         REMOVE_ELEM( p_i->pp_categories, p_i->i_categories, i_cat );
+        free( p_cat->psz_name );
+        free( p_cat );
     }
-
-    // Free the category
-    free( p_cat->psz_name );
-    free( p_cat );
     vlc_mutex_unlock( &p_i->lock );