[vlc-devel] commit: Interaction: set the p_parent field ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Feb 1 11:57:19 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Feb 1 12:56:23 2009 +0200| [dd0ad6e7176d191b1647f9024cded30f1e518d0c] | committer: Rémi Denis-Courmont
Interaction: set the p_parent field
I wonder why it was there in the first place.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dd0ad6e7176d191b1647f9024cded30f1e518d0c
---
src/interface/interaction.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/interface/interaction.c b/src/interface/interaction.c
index dbc7d33..c3322c1 100644
--- a/src/interface/interaction.c
+++ b/src/interface/interaction.c
@@ -75,6 +75,7 @@ static int DialogSend( vlc_object_t *, interaction_dialog_t * );
#define DIALOG_INIT( type, err ) \
interaction_dialog_t* p_new = calloc( 1, sizeof( interaction_dialog_t ) ); \
if( !p_new ) return err; \
+ p_new->p_parent = vlc_object_hold( p_this ); \
p_new->b_cancelled = false; \
p_new->i_status = NEW_DIALOG; \
p_new->i_flags = 0; \
@@ -467,6 +468,7 @@ static void DialogDestroy( interaction_dialog_t *p_dialog )
free( p_dialog->psz_default_button );
free( p_dialog->psz_alternate_button );
free( p_dialog->psz_other_button );
+ vlc_object_release( p_dialog->p_parent );
free( p_dialog );
}
More information about the vlc-devel
mailing list