rtspsrc: fix query leak
authorTim-Philipp Müller <tim@centricular.com>
Thu, 10 Jul 2014 16:19:42 +0000 (17:19 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 10 Jul 2014 16:19:42 +0000 (17:19 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=733003

gst/rtsp/gstrtspsrc.c

index e28fb9a..e7573c7 100644 (file)
@@ -2328,12 +2328,16 @@ gst_rtspsrc_get_position (GstRTSPSrc * src)
         GST_DEBUG_OBJECT (src, "retaining position %" GST_TIME_FORMAT,
             GST_TIME_ARGS (pos));
         src->last_pos = pos;
-        return;
+        goto out;
       }
     }
   }
 
   src->last_pos = 0;
+
+out:
+
+  gst_query_unref (query);
 }
 
 static gboolean