Qt4: fix sizeof mismatch
authorRémi Duraffort <ivoire@videolan.org>
Wed, 1 Jan 2014 17:53:16 +0000 (18:53 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Thu, 2 Jan 2014 08:15:37 +0000 (09:15 +0100)
modules/gui/qt4/dialogs/vlm.cpp

index 47e1b93..64eba98 100644 (file)
@@ -290,7 +290,7 @@ void VLMDialog::mediasPopulator()
         int i_nMedias;
         QString typeShortName;
         int vlmItemCount;
-        vlm_media_t ***ppp_dsc = (vlm_media_t ***)malloc( sizeof( vlm_media_t ) );
+        vlm_media_t ***ppp_dsc = (vlm_media_t ***)malloc( sizeof( vlm_media_t** ) );
 
         /* Get medias information and numbers */
         vlm_Control( p_vlm, VLM_GET_MEDIAS, ppp_dsc, &i_nMedias );