summaryrefslogtreecommitdiffstats
path: root/ext/directfb/dfb-example.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/directfb/dfb-example.c')
-rw-r--r--ext/directfb/dfb-example.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/directfb/dfb-example.c b/ext/directfb/dfb-example.c
index 3f455c92..b9956337 100644
--- a/ext/directfb/dfb-example.c
+++ b/ext/directfb/dfb-example.c
@@ -70,6 +70,9 @@ main (int argc, char *argv[])
/* Release elements and stop playback */
gst_element_set_state (pipeline, GST_STATE_NULL);
+ /* Free the main loop */
+ g_main_loop_unref (loop);
+
/* Release DirectFB context and surface */
primary->Release (primary);
dfb->Release (dfb);