[util] Don't use g_array_unref()
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 26 Sep 2013 22:26:43 +0000 (18:26 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 26 Sep 2013 22:26:43 +0000 (18:26 -0400)
Was introduced in glib 2.22.

util/view-cairo.hh

index 8fe74fa..96a44ff 100644 (file)
@@ -81,7 +81,7 @@ struct view_cairo_t
       helper_cairo_line_t &line = g_array_index (lines, helper_cairo_line_t, i);
       line.finish ();
     }
-    g_array_unref (lines);
+    g_array_free (lines, TRUE);
   }
 
   protected: