[gnome-photos] gesture-zoom: Use g_auto*
- From: Umang Jain <uajain src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] gesture-zoom: Use g_auto*
- Date: Wed, 29 Nov 2017 05:07:31 +0000 (UTC)
commit 1b517d8ba364a26cbec75a56b5b44b858aae8f99
Author: Umang Jain <mailumangjain gmail com>
Date: Tue Nov 28 09:59:45 2017 +0530
gesture-zoom: Use g_auto*
https://bugzilla.gnome.org/show_bug.cgi?id=788174
src/photos-gesture-zoom.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-gesture-zoom.c b/src/photos-gesture-zoom.c
index 8b63573..525c61e 100644
--- a/src/photos-gesture-zoom.c
+++ b/src/photos-gesture-zoom.c
@@ -60,7 +60,7 @@ G_DEFINE_TYPE (PhotosGestureZoom, photos_gesture_zoom, G_TYPE_OBJECT);
static gdouble
photos_gesture_zoom_calculate_distance (PhotosGestureZoom *self, GdkTouchpadGesturePhase touchpad_phase)
{
- GList *sequences = NULL;
+ g_autoptr (GList) sequences = NULL;
const GdkEvent *last_event;
gdouble ret_val = -1.0;
@@ -92,7 +92,6 @@ photos_gesture_zoom_calculate_distance (PhotosGestureZoom *self, GdkTouchpadGest
ret_val = sqrt (distance2);
}
- g_list_free (sequences);
return ret_val;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]