]> git.sesse.net Git - vlc/blobdiff - modules/misc/gtk_main.c
Don't print a message a malloc failed.
[vlc] / modules / misc / gtk_main.c
index 15282f4570ba21801d692cb51dad5cdc7f5a1535..c5b0d98069411954353fa0500ad4620ed59ffc70 100644 (file)
@@ -99,7 +99,7 @@ static int Open( vlc_object_t *p_this )
         return VLC_SUCCESS;
     }
 
-    p_gtk_main = vlc_object_create( p_this, VLC_OBJECT_GENERIC );
+    p_gtk_main = vlc_object_create( p_this, sizeof( vlc_object_t ) );
 
     /* Only initialize gthreads if it's the first time we do it */
     if( !g_thread_supported() )