From 257e154eaa3fb6c53556aae49377c3bfeecb3ea4 Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
Date: Thu, 2 Aug 2012 12:11:04 -0400
Subject: [PATCH] * #14217: gnome: clean up video handle if we could not run
 the renderer

This avoids dead windows hanging around.
---
 gnome/src/video/video_callbacks.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnome/src/video/video_callbacks.c b/gnome/src/video/video_callbacks.c
index 815af5e434..76758fc36d 100644
--- a/gnome/src/video/video_callbacks.c
+++ b/gnome/src/video/video_callbacks.c
@@ -185,6 +185,7 @@ void started_decoding_video_cb(DBusGProxy *proxy UNUSED,
     if (!video_renderer_run(renderer)) {
         g_object_unref(renderer);
         ERROR("Could not run video renderer");
+        g_hash_table_remove(video_handles, id);
         return;
     }
 }
-- 
GitLab