Package: totem
Version: 1.2.1-4
Followup-For: Bug #349357

Patch is attached.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-vserver
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages totem depends on:
ii  totem-gstreamer               1.2.1-4    A simple media player for the Gnom

totem recommends no packages.

-- no debconf information
diff -rNu totem-1.2.1-3/src/totem-uri.c totem-1.2.1/src/totem-uri.c
--- totem-1.2.1-3/src/totem-uri.c	2005-10-22 16:34:53.000000000 -0200
+++ totem-1.2.1/src/totem-uri.c	2006-02-22 15:28:44.000000000 -0300
@@ -222,6 +222,7 @@
 	filter_all = gtk_file_filter_new ();
 	gtk_file_filter_set_name (filter_all, _("All files"));
 	gtk_file_filter_add_pattern (filter_all, "*");
+	g_object_ref (filter_all);
 
 	filter_supported = gtk_file_filter_new ();
 	gtk_file_filter_set_name (filter_supported,
@@ -229,6 +230,14 @@
 	for (i = 0; i < G_N_ELEMENTS (mime_types); i++) {
 		gtk_file_filter_add_mime_type (filter_supported, mime_types[i]);
 	}
+	g_object_ref (filter_supported);
+}
+
+void
+totem_destroy_file_filters (void)
+{
+	g_object_unref (filter_all);
+	g_object_unref (filter_supported);
 }
 
 GSList *
diff -rNu totem-1.2.1-3/src/totem-uri.h totem-1.2.1/src/totem-uri.h
--- totem-1.2.1-3/src/totem-uri.h	2005-10-22 16:34:53.000000000 -0200
+++ totem-1.2.1/src/totem-uri.h	2006-02-22 15:27:57.000000000 -0300
@@ -34,6 +34,7 @@
 gboolean	totem_is_block_device	(const char *uri);
 void		totem_setup_file_monitoring (Totem *totem);
 void		totem_setup_file_filters (void);
+void		totem_destroy_file_filters (void);
 char*		totem_uri_get_subtitle_uri (const char *uri);
 char*		totem_uri_escape_for_display (const char *uri);
 GSList*		totem_add_files		(GtkWindow *parent,
diff -rNu totem-1.2.1-3/src/totem.c totem-1.2.1/src/totem.c
--- totem-1.2.1-3/src/totem.c	2005-10-31 10:24:57.000000000 -0200
+++ totem-1.2.1/src/totem.c	2006-02-22 15:30:06.000000000 -0300
@@ -194,6 +194,7 @@
 	totem_action_fullscreen (totem, FALSE);
 
 	totem_sublang_exit (totem);
+	totem_destroy_file_filters ();
 	totem_named_icons_dispose (totem);
 
 	if (totem->bvw)

Reply via email to