summaryrefslogtreecommitdiff
path: root/player
diff options
context:
space:
mode:
authorBenjamin Otte <otte@gnome.org>2007-10-21 17:41:29 +0200
committerBenjamin Otte <otte@gnome.org>2007-10-21 17:41:29 +0200
commit3c19a8a5d83031f977be8d8ea84b55d3137f0dd7 (patch)
tree1d956af12ea86fff7e5849d12735801fe958d61d /player
parent40549d9d5a627ed1b5d1390229e18f607dcd57f6 (diff)
create the object properly
Diffstat (limited to 'player')
-rw-r--r--player/swfdec-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/swfdec-window.c b/player/swfdec-window.c
index 2a9dc1b..9ec867a 100644
--- a/player/swfdec-window.c
+++ b/player/swfdec-window.c
@@ -116,7 +116,7 @@ swfdec_window_new (const char *url)
GError *error = NULL;
SwfdecWindow *window;
- window = g_slice_new0 (SwfdecWindow);
+ window = g_object_new (SWFDEC_TYPE_WINDOW, NULL);
window->builder = gtk_builder_new ();
gtk_builder_set_translation_domain (window->builder, GETTEXT_PACKAGE);
if (!gtk_builder_add_from_file (window->builder, BUILDER_FILE, &error)) {